[yum-commits] repodiff.py

James Antill james at osuosl.org
Fri Dec 19 16:55:59 UTC 2008


 repodiff.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 027ed20b09a453e33c00c6e04370384190fd6df5
Author: Michael Schwendt <mschwendt at gmail.com>
Date:   Fri Dec 19 11:47:51 2008 -0500

    Print only the date, as that's all the info. we have

diff --git a/repodiff.py b/repodiff.py
index a5563f4..0ad3544 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -7,7 +7,7 @@
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Library General Public License for more details.
+# GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
@@ -17,7 +17,7 @@
 import yum
 import rpmUtils
 import sys
-import time
+import time, datetime
 import os
 import locale
 from yum.misc import to_unicode
@@ -206,7 +206,7 @@ def main(args):
                 clogdelta = []
                 for (t, author, content) in  pkg.changelog:
                       if t > oldtime:
-                          msg += "* %s %s\n%s\n\n" % (time.ctime(int(t)), 
+                          msg += "* %s %s\n%s\n\n" % (datetime.date.fromtimestamp(int(t)).strftime("%a %b %d %Y"),
                             to_unicode(author), to_unicode(content))
             if opts.size:
                 sizechange = int(pkg.size) - int(oldpkg.size)


More information about the Yum-commits mailing list