X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=1dd3a75e2d83c9ce70d527a955fb8d7740640cec;hb=6884c6038e735f6206dc74d859141f911d81da52;hp=40960b9040e297cd2c10953e5015389ba297caa4;hpb=b5d21dfae245e479a1dfd261b7f1a9d9bf2e9b99;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 40960b90..1dd3a75e 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -216,15 +216,7 @@ class Upload: dump_filename = os.path.join(dest_dir,self.pkg.changes_file[:-8] + ".dak") dump_file = utils.open_file(dump_filename, 'w') - try: - os.chmod(dump_filename, 0660) - except OSError, e: - if errno.errorcode[e.errno] == 'EPERM': - perms = stat.S_IMODE(os.stat(dump_filename)[stat.ST_MODE]) - if perms & stat.S_IROTH: - utils.fubar("%s is world readable and chmod failed." % (dump_filename)) - else: - raise + os.chmod(dump_filename, 0664) p = cPickle.Pickler(dump_file, 1) d_changes = {}