mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
[packages] Fix cut-and-paste-o in packages try_remove
- Copied from_local from the code for install, which doesn't make sense and causes a NameError. FIXES #1063
This commit is contained in:
parent
c9930788f7
commit
fe3a88f834
1 changed files with 2 additions and 2 deletions
|
@ -150,10 +150,10 @@ class PackageManager(metaclass=abc.ABCMeta):
|
||||||
@param packagedata: str|dict
|
@param packagedata: str|dict
|
||||||
"""
|
"""
|
||||||
if isinstance(packagedata, str):
|
if isinstance(packagedata, str):
|
||||||
self.remove([packagedata], from_local=from_local)
|
self.remove([packagedata])
|
||||||
else:
|
else:
|
||||||
self.run(packagedata["pre-script"])
|
self.run(packagedata["pre-script"])
|
||||||
self.remove([packagedata["package"]], from_local=from_local)
|
self.remove([packagedata["package"]])
|
||||||
self.run(packagedata["post-script"])
|
self.run(packagedata["post-script"])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue