From c2e68c2f9a26d94fffde842895f84177cce22610 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 28 Nov 2018 08:14:41 +0100 Subject: [PATCH] Fix deleting of files The Package class would already look at the files, so the addremove was too late --- pkglistgen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkglistgen.py b/pkglistgen.py index 83a51b42..36f65155 100755 --- a/pkglistgen.py +++ b/pkglistgen.py @@ -1540,14 +1540,15 @@ class CommandLineInterface(ToolBase.CommandLineInterface): f.close() def commit_package(self, path): - package = Package(path) if self.options.dry: + package = Package(path) for i in package.get_diff(): print(''.join(i)) else: # No proper API function to perform the same operation. print(subprocess.check_output( ' '.join(['cd', path, '&&', 'osc', 'addremove']), shell=True)) + package = Package(path) package.commit(msg='Automatic update', skip_local_service_run=True)