1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

Support the commit of a deleted, but non-existent package

That is, a package which has state 'D', but its package working
copy does not exist anymore.
This commit is contained in:
Marcus Huewe 2017-08-04 13:52:56 +02:00
parent 8ce386c76a
commit 8f68626735

View File

@ -1040,6 +1040,8 @@ class Project:
pass
except OSError:
pac_dir = os.path.join(self.dir, pac)
except (oscerr.NoWorkingCopy, oscerr.WorkingCopyOutdated, oscerr.PackageError):
pass
#print statfrmt('Deleting', getTransActPath(os.path.join(self.dir, pac)))
print(statfrmt('Deleting', getTransActPath(pac_dir)))
delete_package(self.apiurl, self.name, pac)