* fix: accomodate for sourcedb changes (thanks bahadir for showing the bug)
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ class Builder:
|
|||||||
def from_name(name, authinfo = None):
|
def from_name(name, authinfo = None):
|
||||||
# download package and return an installer object
|
# download package and return an installer object
|
||||||
# find package in repository
|
# find package in repository
|
||||||
sf, reponame = ctx.sourcedb.get_spec(name)
|
sf, reponame = ctx.sourcedb.get_spec_repo(name)
|
||||||
src = sf.source
|
src = sf.source
|
||||||
if src:
|
if src:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -642,7 +642,7 @@ def plan_emerge(A, rebuild_all):
|
|||||||
|
|
||||||
def get_spec(name):
|
def get_spec(name):
|
||||||
if ctx.sourcedb.has_spec(name):
|
if ctx.sourcedb.has_spec(name):
|
||||||
return ctx.sourcedb.get_spec(name)[0]
|
return ctx.sourcedb.get_spec(name)
|
||||||
else:
|
else:
|
||||||
raise Error(_('Cannot find source package: %s') % name)
|
raise Error(_('Cannot find source package: %s') % name)
|
||||||
def get_src(name):
|
def get_src(name):
|
||||||
|
|||||||
Reference in New Issue
Block a user