* added an option to bypass ldconfig

This commit is contained in:
Eray Özkural
2005-11-08 16:57:22 +00:00
parent 1d848b232f
commit 1d02911909
2 changed files with 12 additions and 4 deletions
+6 -4
View File
@@ -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"""
+6
View File
@@ -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"))