[Pkg-bazaar-commits] r172 ./bzr-builddeb/trunk: chmod 755 debian/rules while importing dsc

Frederic Brin frederic.brin at assonetworx.com
Sun Sep 2 14:27:47 UTC 2007


------------------------------------------------------------
revno: 172
committer: Frederic Brin <frederic.brin at assonetworx.com>
branch nick: bzr-builddeb-co2
timestamp: Sun 2007-09-02 16:27:47 +0200
message:
  chmod 755 debian/rules while importing dsc
modified:
  import_dsc.py
-------------- next part --------------
=== modified file 'import_dsc.py'
--- a/import_dsc.py	2007-08-22 21:25:55 +0000
+++ b/import_dsc.py	2007-09-02 14:27:47 +0000
@@ -28,6 +28,7 @@
 import os
 from subprocess import Popen, PIPE
 import tarfile
+import stat
 
 from debian_bundle import deb822
 from debian_bundle.changelog import Version
@@ -399,6 +400,7 @@
     f = gzip.GzipFile(fileobj=f)
     try:
       self._patch_tree(f, tree.basedir)
+      os.chmod(os.path.join(tree.basedir, 'debian', 'rules'), (stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH))
       f.seek(0)
       touched_paths = self._get_touched_paths(f)
       self._update_path_info(tree, touched_paths, current_tree, up_tree)



More information about the Pkg-bazaar-commits mailing list