diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-08-26 17:49:25 +0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-29 13:48:06 +0100 |
commit | 0963d513a03bf42c0227d5f89a337613c615be23 (patch) | |
tree | ce9d4a440f52a2dc248a722a496b175c801472e5 | |
parent | e4ebecd065651b0d7a500d122f261b12d1615360 (diff) | |
download | poky-0963d513a03bf42c0227d5f89a337613c615be23.tar.gz |
opkg-utils: ignore packages disapperaring filelist generation
Package files disappearing during index generation don't cause a fatal
error. Make package file disappearing during filelist generation also
a non-fatal error.
(From OE-Core rev: f55c96b6d53ecff865145fa22f286c89c7336515)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils/index-ignore-filenotfound.patch | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | 2 |
2 files changed, 18 insertions, 1 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 | ||
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb index fd2b5e693d..e04b74ace5 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | |||
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "python" | |||
8 | RDEPENDS_${PN}_virtclass-native = "" | 8 | RDEPENDS_${PN}_virtclass-native = "" |
9 | SRCREV = "4747" | 9 | SRCREV = "4747" |
10 | PV = "0.1.8+svnr${SRCPV}" | 10 | PV = "0.1.8+svnr${SRCPV}" |
11 | PR = "r4" | 11 | PR = "r5" |
12 | 12 | ||
13 | SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ | 13 | SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ |
14 | file://index-ignore-filenotfound.patch \ | 14 | file://index-ignore-filenotfound.patch \ |