pkglist_file = args[1]
globs = args[2].split()
+ if not os.path.exists(pkgdata_dir):
+ print('ERROR: Unable to find pkgdata directory %s' % pkgdata_dir)
+ sys.exit(1)
+
+ if not os.path.exists(pkglist_file):
+ print('ERROR: Unable to find package list file %s' % pkglist_file)
+ sys.exit(1)
+
skipregex = re.compile("-locale-|^locale-base-|-dev$|-doc$|-dbg$|-staticdev$|^kernel-module-")
mappedpkgs = set()
var = args[1]
packages = args[2].split()
+ if not os.path.exists(pkgdata_dir):
+ print('ERROR: Unable to find pkgdata directory %s' % pkgdata_dir)
+ sys.exit(1)
+
def readvar(pkgdata_file, var):
val = ""
with open(pkgdata_file, 'r') as f: