[Pkg-bazaar-commits] r174 ./bzr-builddeb/trunk: Check if debian/rules exists before applying 755

Frederic Brin frederic.brin at assonetworx.com
Sun Sep 2 14:45:05 UTC 2007


------------------------------------------------------------
revno: 174
committer: Frederic Brin <frederic.brin at assonetworx.com>
branch nick: bzr-builddeb-co2
timestamp: Sun 2007-09-02 16:45:05 +0200
message:
  Check if debian/rules exists before applying 755
modified:
  import_dsc.py
-------------- next part --------------
=== modified file 'import_dsc.py'
--- a/import_dsc.py	2007-09-02 14:27:47 +0000
+++ b/import_dsc.py	2007-09-02 14:45:05 +0000
@@ -400,7 +400,8 @@
     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))
+      if os.path.isfile(os.path.join(tree.basedir, 'debian', 'rules')):
+        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