From a30f718d967bf86ee2d9220e2ea141fd8c2b88dc Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 15 Dec 2010 12:23:43 +0100 Subject: [PATCH] - fix for python2.4 --- osc/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 33d32da7..50d26817 100644 --- a/osc/core.py +++ b/osc/core.py @@ -1631,15 +1631,17 @@ class Package: yield get_source_file_diff(self.absdir, f.name, self.rev) else: tmpfile = None + diff = [] try: (fd, tmpfile) = tempfile.mkstemp(prefix='osc_diff') get_source_file(self.apiurl, self.prjname, self.name, f.name, tmpfile, revision) - yield get_source_file_diff(self.absdir, f.name, revision, + diff = get_source_file_diff(self.absdir, f.name, revision, os.path.basename(tmpfile), os.path.dirname(tmpfile), f.name) finally: if tmpfile is not None: os.close(fd) os.unlink(tmpfile) + yield diff for f in added: yield diff_add_delete(f, True, revision)