diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-26 18:10:59 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-26 18:14:58 +0100 |
commit | b8187a1176346311c950d458b8dfa6233ec9713e (patch) | |
tree | 36cff1ab07494a1023f2391ff2351d28aa1d0270 /meta/packages/opkg-utils/opkg-utils | |
parent | 5680a1d906e9aa07f486bd0946a1f4c5134acd8e (diff) | |
download | openembedded-core-b8187a1176346311c950d458b8dfa6233ec9713e.tar.gz openembedded-core-b8187a1176346311c950d458b8dfa6233ec9713e.tar.bz2 openembedded-core-b8187a1176346311c950d458b8dfa6233ec9713e.tar.xz openembedded-core-b8187a1176346311c950d458b8dfa6233ec9713e.zip |
opkg-utils: Add patch to avoid errors when packages change while rebuilding the package indexes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/opkg-utils/opkg-utils')
-rw-r--r-- | meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch new file mode 100644 index 000000000..3eb2c9349 --- /dev/null +++ b/meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch @@ -0,0 +1,29 @@ +If we're building an image and some package rebuilds while this is happening +some package can be removed/added to the ipk deploy directory. The image will +not depend on this package so we can safely ignore these cases rather than +error out. + +RP - 26/8/09 + +Index: opkg-utils/opkg-make-index +=================================================================== +--- opkg-utils.orig/opkg-make-index 2009-08-26 17:21:26.000000000 +0100 ++++ opkg-utils/opkg-make-index 2009-08-26 17:24:05.000000000 +0100 +@@ -96,6 +96,7 @@ + files=glob(pkg_dir + '/*.ipk') + glob(pkg_dir + '/*.deb') + files.sort() + for filename in files: ++ try: + basename = os.path.basename(filename) + pkg = None + fnameStat = os.stat(filename) +@@ -130,6 +131,9 @@ + to_morgue(basename) + if opt_s: + print filename ++ except OSError: ++ sys.stderr.write("Package %s disappeared on us!\n" % (filename,)) ++ continue + + pkgsStampsFile = open(stamplist_filename, "w") + for f in pkgsStamps.keys(): |