[entropy.services/reagent] use Spm directly when quickpkging
This commit is contained in:
@@ -557,7 +557,7 @@ class Base:
|
||||
for repoid in to_add:
|
||||
store_dir = Entropy.get_local_store_directory(repo = repoid)
|
||||
for atom in to_add[repoid]:
|
||||
Entropy.quickpkg(atom, store_dir)
|
||||
Entropy.Spm().generate_package(atom, store_dir)
|
||||
|
||||
# inject new into db
|
||||
avail_repos = Entropy.get_available_repositories()
|
||||
|
||||
@@ -431,7 +431,8 @@ def update(options):
|
||||
for x in toBeAdded:
|
||||
print_info(brown(" # ")+red(x[0]+"..."))
|
||||
try:
|
||||
Entropy.quickpkg(x[0], Entropy.get_local_store_directory())
|
||||
return Entropy.Spm().generate_package(x[0],
|
||||
Entropy.get_local_store_directory())
|
||||
except OSError:
|
||||
entropy.tools.print_traceback()
|
||||
print_info(brown(" !!! ")+bold("%s..." % (_("Ignoring broken Spm entry, please recompile it"),) ))
|
||||
|
||||
Reference in New Issue
Block a user