[Pkg-python-debian-commits] r86 trunk: merge

zack at bononia.it zack at bononia.it
Sun Jul 15 09:36:39 UTC 2007


------------------------------------------------------------
revno: 86
committer: zack at bononia.it
branch nick: pkg-python-debian.debfile
timestamp: Sun 2007-07-15 11:36:39 +0200
message:
  merge
modified:
  examples/debfile/ar
    ------------------------------------------------------------
    revno: 84.1.1
    merged: filippo at debian.org-20070715093622-y2njo1klv2584vhl
    committer: filippo at debian.org
    branch nick: debfile
    timestamp: Sun 2007-07-15 11:36:22 +0200
    message:
      yet another ar improvement
-------------- next part --------------
=== modified file 'examples/debfile/ar'
--- a/examples/debfile/ar	2007-07-15 08:41:30 +0000
+++ b/examples/debfile/ar	2007-07-15 09:36:22 +0000
@@ -16,11 +16,14 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-import arfile, os, sys
+import os
+import sys
+
+import arfile
 
 if __name__ == '__main__':
     if len(sys.argv) < 3:
-        print "usage: arfile.py [t|p] <arfile>"
+        print "usage: arfile.py [tp] <arfile>"
         sys.exit(1)
     
     if not os.path.exists(sys.argv[2]):
@@ -33,4 +36,5 @@
         print "\n".join(a.getnames())
     elif sys.argv[1] == 'p':
         for m in a.getmembers():
-            print "".join(m.readlines())
+            #print "".join(m.readlines())
+            sys.stdout.write("".join(m.readlines()))



More information about the pkg-python-debian-commits mailing list