Make vardbapi._aux_get() return _mtime_ as a long (never as a float).
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 04:50:49 +0000 (04:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 04:50:49 +0000 (04:50 -0000)
svn path=/main/trunk/; revision=12331

pym/portage/dbapi/vartree.py

index 8b0fb5f4bebe8a4703227ce6927567b663e8da91..6bff93d3f935efe764f990b3ef4c48958f9f9b98 100644 (file)
@@ -1176,7 +1176,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")