Browse code

warn people who have old-style freewvsdb-dirs around

Hanno Böck authored on21/12/2019 18:01:40
Showing1 changed files
... ...
@@ -72,6 +72,13 @@ parser.add_argument("-3", "--thirdparty", action="store_true",
72 72
                     help="Scan for third-party components like jquery")
73 73
 opts = parser.parse_args()
74 74
 
75
+# Warn people with old-style freewvsdb dirs,
76
+# should be removed in a few months
77
+for d in ["/usr/share/freewvs", "/usr/local/share/freewvs"]:
78
+    if os.path.isdir(d):
79
+        print("WARNING: Obsolete freewvs data in %s, removal recommended" % d,
80
+              file=sys.stderr)
81
+
75 82
 jdir = False
76 83
 for p in [os.path.dirname(sys.argv[0]) + '/freewvsdb', '/var/lib/freewvs']:
77 84
     if os.path.isdir(p):