1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

si.execute now uses shutil.move instead of os.rename,

in case /tmp/ is on its own filesystem...
This commit is contained in:
Juergen Weigert 2010-05-26 16:25:20 +02:00
parent ab30951451
commit 9cb348ffce

View File

@ -316,9 +316,12 @@ class Serviceinfo:
ret = subprocess.call(c, shell=True)
if ret != 0:
print "ERROR: service call failed: " + c
# FIXME: addDownloadUrlService calls si.execute after
# updating _services.
print " (your _services file may be corrupt now)"
for file in os.listdir(temp_dir):
os.rename( os.path.join(temp_dir, file), os.path.join(dir, "_service:"+name+":"+file) )
shutil.move( os.path.join(temp_dir, file), os.path.join(dir, "_service:"+name+":"+file) )
os.rmdir(temp_dir)
class Linkinfo: