dom0: create directory for rpm updates (#198)

This commit is contained in:
Marek Marczykowski 2011-07-16 15:11:23 +02:00
parent 7c5aa0d3ea
commit 4f10835d83

View File

@ -45,6 +45,8 @@ def handle_dom0updates(updatevm):
# Clean old packages
if os.path.exists(updates_rpm_dir):
shutil.rmtree(updates_rpm_dir)
os.mkdir(updates_rpm_dir)
os.chmod(updates_rpm_dir, 0775)
subprocess.check_call(["/usr/lib/qubes/qfile-dom0-unpacker", os.getlogin(), updates_rpm_dir])
# Verify received files
for f in os.listdir(updates_rpm_dir):