* remove --show_abandoned_files option... build -d does this.

* remove unused imports from api.py
* package conflicts != file conflicts -> add --ignore-package-conflicts option
  for these parts.
* build option does not need --ignore-file-conflicts and --ignore-comar... but 
  they are meaningful for emerge
This commit is contained in:
Faik Uygur
2006-10-05 11:24:50 +00:00
parent cc935b4e31
commit 847d466c22
4 changed files with 14 additions and 13 deletions
-2
View File
@@ -15,8 +15,6 @@ import os
import sys
import logging
import logging.handlers
from os.path import exists
import bsddb3.db as db
import gettext
__trans = gettext.translation('pisi', fallback=True)
+1 -1
View File
@@ -823,7 +823,7 @@ class Builder:
ctx.ui.info(_("Done."))
#show the files those are not collected from the install dir
if ctx.get_option('show_abandoned_files') or ctx.get_option('debug'):
if ctx.get_option('debug'):
abandoned_files = self.get_abandoned_files()
if abandoned_files:
ctx.ui.warning(_('Abandoned files under the install dir (%s):') % (install_dir))
+10 -7
View File
@@ -441,18 +441,11 @@ to be downloaded from a repository containing sources.
ignoredep_opt(self, group)
group.add_option("-O", "--output-dir", action="store", default=None,
help=_("Output directory for produced packages"))
group.add_option("--show-abandoned-files", action="store_true",
default=False,
help=_("Show abandoned files under the install directory after build."))
group.add_option("--ignore-action-errors",
action="store_true", default=False,
help=_("Bypass errors from ActionsAPI"))
group.add_option("--ignore-safety", action="store_true",
default=False, help=_("Bypass safety switch"))
group.add_option("--ignore-file-conflicts", action="store_true",
default=False, help=_("Ignore file conflicts"))
group.add_option("--ignore-comar", action="store_true",
default=False, help=_("Bypass comar configuration agent"))
group.add_option("--create-static", action="store_true",
default=False, help=_("Create a static package with ar files"))
group.add_option("--no-install", action="store_true",
@@ -525,6 +518,12 @@ You can also give the name of a component.
group = OptionGroup(self.parser, _("emerge options"))
super(Emerge, self).add_options(group)
group.add_option("--ignore-file-conflicts", action="store_true",
default=False, help=_("Ignore file conflicts"))
group.add_option("--ignore-package-conflicts", action="store_true",
default=False, help=_("Ignore package conflicts"))
group.add_option("--ignore-comar", action="store_true",
default=False, help=_("Bypass comar configuration agent"))
self.parser.add_option_group(group)
def run(self):
@@ -594,6 +593,8 @@ expanded to package names.
default=False, help=_("Reinstall already installed packages"))
group.add_option("--ignore-file-conflicts", action="store_true",
default=False, help=_("Ignore file conflicts"))
group.add_option("--ignore-package-conflicts", action="store_true",
default=False, help=_("Ignore package conflicts"))
group.add_option("-f", "--fetch-only", action="store_true",
default=False, help=_("Fetch upgrades but do not install."))
self.parser.add_option_group(group)
@@ -645,6 +646,8 @@ expanded to package names.
default=False, help=_("Do not update repositories"))
group.add_option("--ignore-file-conflicts", action="store_true",
default=False, help=_("Ignore file conflicts"))
group.add_option("--ignore-package-conflicts", action="store_true",
default=False, help=_("Ignore package conflicts"))
group.add_option("-e", "--eager", action="store_true",
default=False, help=_("eager upgrades"))
group.add_option("-f", "--fetch-only", action="store_true",
+3 -3
View File
@@ -175,7 +175,7 @@ in the respective order to satisfy extra dependencies:
if ctx.config.get_option('debug'):
G_f.write_graphviz(sys.stdout)
order = G_f.topological_sort()
if not ctx.get_option('ignore_file_conflicts'):
if not ctx.get_option('ignore_package_conflicts'):
check_conflicts(order, packagedb)
order.reverse()
ctx.ui.info(_('Installation order: ') + util.strlist(order) )
@@ -376,7 +376,7 @@ def plan_install_pkg_names(A):
G_f.write_graphviz(sys.stdout)
order = G_f.topological_sort()
order.reverse()
if not ctx.get_option('ignore_file_conflicts'):
if not ctx.get_option('ignore_package_conflicts'):
check_conflicts(order, ctx.packagedb)
return G_f, order
@@ -545,7 +545,7 @@ def plan_upgrade(A, ignore_build = False):
G_f.write_graphviz(sys.stdout)
order = G_f.topological_sort()
order.reverse()
if not ctx.get_option('ignore_file_conflicts'):
if not ctx.get_option('ignore_package_conflicts'):
check_conflicts(order, ctx.packagedb)
return G_f, order