Make vardbapi._aux_get() return _mtime_ as a long (never as a float).
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:25 +0000 (05:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:25 +0000 (05:05 -0000)
(trunk r12331)

svn path=/main/branches/2.1.6/; revision=12337

pym/portage/dbapi/vartree.py

index c8a4870e10578153a601bdc7a8bc5852cf623b2e..3d8e9d6cbca961f5e37dee0aed656b515d9506f0 100644 (file)
@@ -521,7 +521,7 @@ class vardbapi(dbapi):
                results = []
                for x in wants:
                        if x == "_mtime_":
-                               results.append(st.st_mtime)
+                               results.append(long(st.st_mtime))
                                continue
                        try:
                                myf = open(os.path.join(mydir, x), "r")