* added an option to bypass ldconfig
This commit is contained in:
@@ -240,10 +240,12 @@ class Install(AtomicOperation):
|
||||
if x.path.endswith('.so') or x.path.startswith('/etc/env.d'):
|
||||
shared = True
|
||||
break
|
||||
if shared:
|
||||
ctx.ui.info("Regenerating /etc/ld.so.cache...")
|
||||
util.env_update()
|
||||
|
||||
if not ctx.get_option('bypass_ldconfig'):
|
||||
if shared:
|
||||
ctx.ui.info(_("Regenerating /etc/ld.so.cache..."))
|
||||
util.env_update()
|
||||
else:
|
||||
ctx.ui.warning(_("Bypassing ldconfig"))
|
||||
|
||||
def install_single(pkg, upgrade = False):
|
||||
"""install a single package from URI or ID"""
|
||||
|
||||
@@ -390,6 +390,9 @@ specified a package name, it should exist in a specified repository.
|
||||
|
||||
def options(self):
|
||||
super(Install, self).options()
|
||||
p = self.parser
|
||||
p.add_option("", "--bypass-ldconfig", action="store_true",
|
||||
default=False, help=_("Bypass ldconfig phase"))
|
||||
buildno_opts(self)
|
||||
|
||||
def run(self):
|
||||
@@ -427,6 +430,9 @@ reinstall a package from a pisi file, use the install command."""
|
||||
def options(self):
|
||||
super(Upgrade, self).options()
|
||||
buildno_opts(self)
|
||||
p = self.parser
|
||||
p.add_option("", "--bypass-ldconfig", action="store_true",
|
||||
default=False, help=_("Bypass ldconfig phase"))
|
||||
self.parser.add_option("-e", "--eager", action="store_true",
|
||||
default=False, help=_("eager upgrades"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user