summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-08-28 08:41:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 16:53:07 +0100
commita259fdb296a43b89028edb342ca9967a1b50ab5d (patch)
tree7c18709e9952ae2561f0efb3fbbd86483d09363a /meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
parent55997cbf3d4778083dd1073f415fc4396d86f0a0 (diff)
downloadpoky-a259fdb296a43b89028edb342ca9967a1b50ab5d.tar.gz
opkg-utils: bump SRCREV for Packages cache fix and other fixes
(From OE-Core rev: ce5b46980f35097bd5fcc8195c5d5be1b980c870) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
deleted file mode 100644
index 483a62a9a1..0000000000
--- a/meta/recipes-devtools/opkg-utils/opkg-utils/mtime-int.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1Convert mtime to int before comparing it
2
3The st_mtime attribute (which is a float) is compared against a value
4from the timestamp database, which was stored as an integer there.
5
6When working on a filesystem with precise timestamps the comparision
7will fail nearly everytime hence.
8
9Although it might be possible to enhance the database to store the
10fractional part too, this will complicate things more than we would
11gain by this change.
12
13Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
14
15Upstream-Status: Pending
16(Contacting the original author, no response yet.)
17
18Index: opkg-utils/opkg-make-index
19===================================================================
20--- opkg-utils.orig/opkg-make-index
21+++ opkg-utils/opkg-make-index
22@@ -100,7 +100,7 @@ for filename in files:
23 pkg = None
24 fnameStat = os.stat(filename)
25 if old_pkg_hash.has_key(basename):
26- if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
27+ if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
28 if (verbose):
29 sys.stderr.write("Found %s in Packages\n" % (filename,))
30 pkg = old_pkg_hash[basename]