Kaydet (Commit) 2a2e84ef authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Update inary/operations/helper.py, inary/cli/install.py files

üst 3afd8486
......@@ -116,7 +116,6 @@ expanded to package names.
reinstall = bool(packages) and packages[0].endswith(ctx.const.package_suffix)
install.install(packages, ctx.get_option('reinstall') or reinstall)
config_changes = helper.check_config_changes([util.parse_package_name_legacy(i.split("/")[-1])[0] for i in packages])
if not self.options.ignore_sysconf:
......
......@@ -195,8 +195,13 @@ def get_package_requirements(packages):
return requirements
def check_config_changes(order):
def check_config_changes(opt=None, order):
if not opt:
import inary.data.history as History
history = History.History()
opt=history._get_latest()
print(opt)
config_changes=dict()
for package in order:
......@@ -207,7 +212,7 @@ def check_config_changes(order):
newconfig = []
for path in config_paths:
if os.path.exists(path) and os.path.exists(path + ".newconfig-byinary"):
if os.path.exists(path) and os.path.exists(path):
newconfig.append(path)
if newconfig:
config_changes[package] = newconfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment