mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
- core.Project: fixed update method
handle missing packages (state "!") more gracefully
This commit is contained in:
parent
da52ea1331
commit
fc00d2621c
@ -672,6 +672,7 @@ class Project:
|
|||||||
upstream_del = [ pac for pac in self.pacs_have if not pac in self.pacs_available and self.get_state(pac) != 'A']
|
upstream_del = [ pac for pac in self.pacs_have if not pac in self.pacs_available and self.get_state(pac) != 'A']
|
||||||
|
|
||||||
for pac in upstream_del:
|
for pac in upstream_del:
|
||||||
|
if self.status(pac) != '!':
|
||||||
p = Package(os.path.join(self.dir, pac))
|
p = Package(os.path.join(self.dir, pac))
|
||||||
self.delPackage(p, force = True)
|
self.delPackage(p, force = True)
|
||||||
delete_storedir(p.storedir)
|
delete_storedir(p.storedir)
|
||||||
|
Loading…
Reference in New Issue
Block a user