summaryrefslogtreecommitdiffstats
path: root/meta/packages/opkg-utils
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-08-26 20:50:43 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-08-26 20:50:43 +0100
commit479d7f175a213fd6c9d1f9f76972061e14180ee6 (patch)
treeb1f53cefeb6777e1b7d0d8b2e4ccf736972a7044 /meta/packages/opkg-utils
parent2498dd2f7dcb41154281dcedbca2b81d71bab331 (diff)
downloadpoky-479d7f175a213fd6c9d1f9f76972061e14180ee6.tar.gz
opkg-utils: Further missing files tweaks
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/opkg-utils')
-rw-r--r--meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch29
-rw-r--r--meta/packages/opkg-utils/opkg-utils_svn.bb2
2 files changed, 21 insertions, 10 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
index 3eb2c9349a..bafc2f6a1c 100644
--- a/meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
+++ b/meta/packages/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
@@ -1,14 +1,7 @@
1If we're building an image and some package rebuilds while this is happening
2some package can be removed/added to the ipk deploy directory. The image will
3not depend on this package so we can safely ignore these cases rather than
4error out.
5
6RP - 26/8/09
7
8Index: opkg-utils/opkg-make-index 1Index: opkg-utils/opkg-make-index
9=================================================================== 2===================================================================
10--- opkg-utils.orig/opkg-make-index 2009-08-26 17:21:26.000000000 +0100 3--- opkg-utils.orig/opkg-make-index 2009-08-26 17:21:26.000000000 +0100
11+++ opkg-utils/opkg-make-index 2009-08-26 17:24:05.000000000 +0100 4+++ opkg-utils/opkg-make-index 2009-08-26 20:49:52.000000000 +0100
12@@ -96,6 +96,7 @@ 5@@ -96,6 +96,7 @@
13 files=glob(pkg_dir + '/*.ipk') + glob(pkg_dir + '/*.deb') 6 files=glob(pkg_dir + '/*.ipk') + glob(pkg_dir + '/*.deb')
14 files.sort() 7 files.sort()
@@ -22,8 +15,26 @@ Index: opkg-utils/opkg-make-index
22 if opt_s: 15 if opt_s:
23 print filename 16 print filename
24+ except OSError: 17+ except OSError:
25+ sys.stderr.write("Package %s disappeared on us!\n" % (filename,)) 18+ sys.stderr.write("Package %s disappeared on us!\n" % (filename))
26+ continue 19+ continue
27 20
28 pkgsStampsFile = open(stamplist_filename, "w") 21 pkgsStampsFile = open(stamplist_filename, "w")
29 for f in pkgsStamps.keys(): 22 for f in pkgsStamps.keys():
23@@ -148,6 +152,7 @@
24 names = packages.packages.keys()
25 names.sort()
26 for name in names:
27+ try:
28 pkg = packages.packages[name]
29 if locales_dir and pkg.depends:
30 depends = string.split(pkg.depends, ',')
31@@ -165,6 +170,9 @@
32 if (verbose):
33 sys.stderr.write("Writing info for package %s\n" % (pkg.package,))
34 print pkg
35+ except OSError:
36+ sys.stderr.write("Package %s disappeared on us!\n" % (name))
37+ continue
38 if packages_filename:
39 sys.stdout.close()
40 sys.stdout = old_stdout
diff --git a/meta/packages/opkg-utils/opkg-utils_svn.bb b/meta/packages/opkg-utils/opkg-utils_svn.bb
index 53b208db14..a141505710 100644
--- a/meta/packages/opkg-utils/opkg-utils_svn.bb
+++ b/meta/packages/opkg-utils/opkg-utils_svn.bb
@@ -4,7 +4,7 @@ PRIORITY = "optional"
4LICENSE = "GPL" 4LICENSE = "GPL"
5RDEPENDS = "python" 5RDEPENDS = "python"
6RDEPENDS_virtclass-native = "" 6RDEPENDS_virtclass-native = ""
7PR = "r4" 7PR = "r5"
8 8
9SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ 9SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
10 file://index-ignore-filenotfound.patch;patch=1" 10 file://index-ignore-filenotfound.patch;patch=1"