Kaydet (Commit) 827e9f6a authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Merge branch 'patch-41845' into 'develop'

Patch 41845

See merge request sulinos/devel/inary!24
......@@ -487,10 +487,15 @@ class Install(AtomicOperation):
if os.path.samestat(new_file_stat, old_file_stat):
break
else:
remove_permanent= not ctx.config.get_option("preserve_permanent")
Remove.remove_file(
old_file,
self.pkginfo.name,
remove_permanent,
store_old_paths=self.store_old_paths)
if self.reinstall():
......
......@@ -64,6 +64,13 @@ expanded to package names.
default=False, help=_("Skip sysconf operations after installation."))
group.add_option("--force-sysconf", action="store_true",
default=False, help=_("Force sysconf operations after installation. Applies all sysconf operations"))
group.add_option("--preserve-permanent", action="store_true",
default=False,
help=_("Preserves permanent tagged files on upgrade action "
"like some important libc modules. This is used to be "
"sure about stability of system packages. This helps "
"you preserve your own source compiled applications "
"like pip modules, gem installations etc."))
group.add_option("-c", "--component", action="append",
default=None, help=_("Upgrade component's and recursive components' packages."))
group.add_option("-r", "--repository", action="store",
......
......@@ -40,8 +40,6 @@ try:
except ImportError:
raise(_("PyCurl module not found. Please install python3-pycurl or check your installation."))
# inary modules
# For raising errors when fetching
class FetchError(inary.errors.Error):
......
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