Emerge should install the package whether it is installed or not

BUG:FIXED:11004
This commit is contained in:
Faik Uygur
2009-09-09 07:56:23 +00:00
parent ecbfb44670
commit 3d8470e68f
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -477,6 +477,15 @@ def set_repo_activity(name, active):
repodb.deactivate_repo(name)
pisi.db.regenerate_caches()
@locked
def emerge(packages):
"""
Builds and installs the given packages from source
@param packages: list of package names -> list_of_strings
"""
pisi.db.historydb.HistoryDB().create_history("emerge")
return pisi.operations.emerge.emerge(packages)
@locked
def delete_cache():
"""
@@ -807,11 +816,6 @@ def rebuild_db(files=False):
# from pisi.build import build_until
# from pisi.atomicoperations import resurrect_package, build
@locked
def emerge(*args, **kw):
pisi.db.historydb.HistoryDB().create_history("emerge")
return pisi.operations.emerge.emerge(*args, **kw)
def calculate_conflicts(*args, **kw):
return pisi.conflict.calculate_conflicts(*args, **kw)
+1 -1
View File
@@ -71,7 +71,7 @@ installed in the respective order to satisfy dependencies:
for x in order_build:
package_names = atomicoperations.build(x)[0]
pisi.operations.install.install_pkg_files(package_names) # handle inter-package deps here
pisi.operations.install.install_pkg_files(package_names, reinstall=True) # handle inter-package deps here
# reset counts between builds
ctx.ui.errors = ctx.ui.warnings = 0