[kernel] r5029 - patch-tracking/scripts

Dann Frazier dannf at costa.debian.org
Sun Dec 18 23:00:04 UTC 2005


Author: dannf
Date: Sun Dec 18 23:00:02 2005
New Revision: 5029

Modified:
   patch-tracking/scripts/sync-pkg-list
Log:
update the file in place by default

Modified: patch-tracking/scripts/sync-pkg-list
==============================================================================
--- patch-tracking/scripts/sync-pkg-list	(original)
+++ patch-tracking/scripts/sync-pkg-list	Sun Dec 18 23:00:02 2005
@@ -20,8 +20,13 @@
     f.close()
 
     for file in args:
-        d = deb822.deb822(open(file, 'r'))
+        f = open(file, 'r')
+        d = deb822.deb822(f)
+        f.close
         for pkg in pkglist:
             if not d.hasField(pkg):
                 d.addField(pkg, "")
-        d.dump(sys.stdout)
+        f = open(file, 'w')
+        d.dump(f)
+        f.close()
+



More information about the Kernel-svn-changes mailing list