createrepo/yumbased.py

[email protected] (Seth Vidal)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/yumbased.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 21e40b20b790dd5dbf8844f84ea80b345e5c8c23
Author: Seth Vidal <[email protected]>
Date:   Wed Jan 9 01:59:23 2008 -0500

    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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.