mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01: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:
parent
8ce386c76a
commit
8f68626735
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user