summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-10 01:19:15 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-10 01:19:15 +0000
commit185ddb4bb6823cb7502b53ffb06261f1f278ac95 (patch)
tree2f08982cb0671c2e85d9b77102aadcfd5cebeb23 /bin
parentc2d73c12b770298ad17bd564739939a82972ff65 (diff)
downloadportage-185ddb4bb6823cb7502b53ffb06261f1f278ac95.tar.gz
portage-185ddb4bb6823cb7502b53ffb06261f1f278ac95.tar.bz2
portage-185ddb4bb6823cb7502b53ffb06261f1f278ac95.zip
Use pkg.mtime instead of calling stat().
svn path=/main/branches/2.1.2/; revision=10630
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index d80b033bb..60e10dc4c 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1868,7 +1868,7 @@ for x in scanlist:
f.close()
del f
- myear = time.gmtime(os.stat(full_path)[ST_MTIME])[0]
+ myear = time.gmtime(pkg.mtime)[0]
gentoo_copyright = re.compile(r'^# Copyright ((1999|200\d)-)?' + str(myear) + r' Gentoo Foundation')
gentoo_license = re.compile(r'^# Distributed under the terms of the GNU General Public License v2$')
cvs_header = re.compile(r'^#\s*\$Header.*\$$')