aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ipkg-utils/ipkg-utils
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2010-06-15 14:43:54 +0200
committerEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2010-07-15 11:38:01 +0200
commit49e11b32906fc1becd9218bb3125f6fc8fa03fa4 (patch)
treeb9154c7efc468ac75f979a923f6f5194a945138f /recipes/ipkg-utils/ipkg-utils
parentc1968dc5ea6b0552a8ca2c9c38c51c5df0ae4917 (diff)
downloadopenembedded-49e11b32906fc1becd9218bb3125f6fc8fa03fa4.tar.gz
ipkg-utils: convert mtime to int before comparing it
The st_mtime attribute (which is a float) is compared against a value from the timestamp database, which was stored as an integer there. When working on a filesystem with precise timestamps the comparision will fail nearly everytime hence. Although it might be possible to enhance the database to store the fractional part too, this will complicate things more than we would gain by this change. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Diffstat (limited to 'recipes/ipkg-utils/ipkg-utils')
-rw-r--r--recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch b/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
index ad6df4f2e9..68758ed76c 100644
--- a/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
+++ b/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
@@ -53,7 +53,7 @@ Index: ipkg-utils/ipkg-make-index
+ fnameStat = os.stat(filename)
if old_pkg_hash.has_key(basename):
- if (verbose):
-+ if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
++ if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
+ if (verbose):
sys.stderr.write("Found %s in Packages\n" % (filename,))
- pkg = old_pkg_hash[basename]