summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-pkgdata-util12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index e34fcbe079..01fccd2db0 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -37,6 +37,14 @@ def glob(args, usage):
37 pkglist_file = args[1] 37 pkglist_file = args[1]
38 globs = args[2].split() 38 globs = args[2].split()
39 39
40 if not os.path.exists(pkgdata_dir):
41 print('ERROR: Unable to find pkgdata directory %s' % pkgdata_dir)
42 sys.exit(1)
43
44 if not os.path.exists(pkglist_file):
45 print('ERROR: Unable to find package list file %s' % pkglist_file)
46 sys.exit(1)
47
40 skipregex = re.compile("-locale-|^locale-base-|-dev$|-doc$|-dbg$|-staticdev$|^kernel-module-") 48 skipregex = re.compile("-locale-|^locale-base-|-dev$|-doc$|-dbg$|-staticdev$|^kernel-module-")
41 49
42 mappedpkgs = set() 50 mappedpkgs = set()
@@ -148,6 +156,10 @@ def read_value(args, usage):
148 var = args[1] 156 var = args[1]
149 packages = args[2].split() 157 packages = args[2].split()
150 158
159 if not os.path.exists(pkgdata_dir):
160 print('ERROR: Unable to find pkgdata directory %s' % pkgdata_dir)
161 sys.exit(1)
162
151 def readvar(pkgdata_file, var): 163 def readvar(pkgdata_file, var):
152 val = "" 164 val = ""
153 with open(pkgdata_file, 'r') as f: 165 with open(pkgdata_file, 'r') as f: