From: Seth Vidal Date: Wed, 9 Jan 2008 06:59:23 +0000 (-0500) Subject: make --update work correctly - by getting the right item from os.stat() for mtime X-Git-Tag: upstream/0.9.9~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21e40b20b790dd5dbf8844f84ea80b345e5c8c23;p=tools%2Fcreaterepo.git make --update work correctly - by getting the right item from os.stat() for mtime --- diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py index cab3c47..db6226f 100644 --- a/createrepo/yumbased.py +++ b/createrepo/yumbased.py @@ -33,7 +33,7 @@ class CreateRepoPackage(YumLocalPackage): YumLocalPackage.__init__(self, ts, package) self._checksum = None self._stat = os.stat(package) - self.filetime = str(self._stat[-1]) + self.filetime = str(self._stat[-2]) self.packagesize = str(self._stat[6]) self._hdrstart = None self._hdrend = None