1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

- removed "old" hack

This commit is contained in:
Marcus Huewe 2010-09-07 10:54:42 +02:00
parent acbf2dabd5
commit c85ee2c0cb

View File

@ -1130,9 +1130,7 @@ class Package:
storefilename = os.path.join(self.storedir, n)
origfile_tmp = os.path.join(self.storedir, '_in_update', '%s.copy' % n)
origfile = os.path.join(self.storedir, '_in_update', n)
# XXX: the existence of the _in_update dir is just a hack
# otherwise checkout_package fails - will be fixed later
if os.path.isfile(filename) and os.path.isdir(os.path.join(self.storedir, '_in_update')):
if os.path.isfile(filename):
shutil.copyfile(filename, origfile_tmp)
os.rename(origfile_tmp, origfile)
else: