X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=1dd3a75e2d83c9ce70d527a955fb8d7740640cec;hb=f2a07f389ced773e2c2e97cc2075df3cf0f4ac43;hp=40960b9040e297cd2c10953e5015389ba297caa4;hpb=b0fa2768edc3523b7e6a081252a622c4121112d8;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 = {}