summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
index 3664df6635..f0f0fcf12c 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
@@ -54,3 +54,20 @@ Index: opkg-utils/opkg-make-index
54 if packages_filename: 54 if packages_filename:
55 sys.stdout.close() 55 sys.stdout.close()
56 sys.stdout = old_stdout 56 sys.stdout = old_stdout
57@@ -197,7 +197,15 @@
58 names = packages.packages.keys()
59 names.sort()
60 for name in names:
61- for fn in packages[name].get_file_list():
62+ try:
63+ fnlist = packages[name].get_file_list()
64+ except OSError, e:
65+ sys.stderr.write("Package %s disappeared on us!\n" % (name))
66+ continue
67+ except IOError, e:
68+ sys.stderr.write("Package %s disappeared on us!\n" % (name))
69+ continue
70+ for fn in fnlist:
71 (h,t) = os.path.split(fn)
72 if not t: continue
73 if not files.has_key(t): files[t] = name+':'+fn