From 155a08ee93fded7d248cf313c774f3077a0a4ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 7 Feb 2007 22:28:40 +0000 Subject: [PATCH] ktorrent --> Min: ktorrent-14-13.delta.pisi Max: ktorrent-2.1_rc1-13-13.pisi Creating delta PiSi package between ktorrent-14-13.delta.pisi ktorrent-2.1_rc1-13-13.pisi Traceback (most recent call last): File "/var/www/localhost/htdocs/delta/createdelta.py", line 47, in ? create_delta_package(old_pkg, new_pkg) File "/usr/lib/pardus/pisi/delta.py", line 82, in create_delta_package os.unlink(util.join_path(ctx.config.tmp_dir(), ctx.const.install_tar_lzma)) OSError: [Errno 2] No such file or directory: '/var/pisi/install.tar.lzma' --- pisi/delta.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pisi/delta.py b/pisi/delta.py index 1b23a3ab..43746005 100644 --- a/pisi/delta.py +++ b/pisi/delta.py @@ -79,7 +79,10 @@ def create_delta_package(old_package, new_package): deltapkg.close() - os.unlink(util.join_path(ctx.config.tmp_dir(), ctx.const.install_tar_lzma)) + tmp_file = util.join_path(ctx.config.tmp_dir(), ctx.const.install_tar_lzma) + if os.path.exists(tmp_file): + os.unlink(tmp_file) + ctx.build_leftover = None os.chdir(c)