[Pkg-bazaar-commits] r143 ./bzr-builddeb/people/jdw/merge_upstream: Don't check that the source exists when repacking, and encode unicode source.

James Westby jw+debian at jameswestby.net
Sun Jul 8 10:06:35 UTC 2007


------------------------------------------------------------
revno: 143
committer: James Westby <jw+debian at jameswestby.net>
branch nick: merge_upstream
timestamp: Sun 2007-07-08 11:06:35 +0100
message:
  Don't check that the source exists when repacking, and encode unicode source.
modified:
  repack_tarball.py
-------------- next part --------------
=== modified file 'repack_tarball.py'
--- a/repack_tarball.py	2007-07-08 09:42:08 +0000
+++ b/repack_tarball.py	2007-07-08 10:06:35 +0000
@@ -60,8 +60,6 @@
                       exists.
   :throes BzrCommandError: if the source isn't supported for repacking.
   """
-  if not os.path.exists(orig_name):
-    raise NoSuchFile(orig_name)
   if target_dir is not None:
     if not os.path.exists(target_dir):
       os.mkdir(target_dir)
@@ -78,6 +76,8 @@
     finally:
       tar.close()
   else:
+    if isinstance(orig_name, unicode):
+      orig_name = orig_name.encode('utf-8')
     base_dir, path = urlutils.split(orig_name)
     transport = get_transport(base_dir)
     trans_file = transport.get(path)



More information about the Pkg-bazaar-commits mailing list