opkg-utils: convert mtime to int before comparing it
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 24 Feb 2011 08:12:49 +0000 (08:12 +0000)
committerKhem Raj <raj.khem@gmail.com>
Thu, 24 Feb 2011 02:29:04 +0000 (18:29 -0800)
commitc81990aecae3bdf70a7c924699776b248ab7a006
treea78c4d5aa25c2d6ecdb5ee32b022f14f97e71458
parent558eb989e115b4f5d27bc2bc931628124683ed5b
opkg-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.

This patch was applied as 49e11b32906fc1becd9218bb3125f6fc8fa03fa4 to
old ipkg-utils already.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Acked-By: Graham Gower <graham.gower@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/opkg-utils/opkg-utils/mtime-int.patch [new file with mode: 0644]
recipes/opkg-utils/opkg-utils_svn.bb