* fix: accomodate for sourcedb changes (thanks bahadir for showing the bug)

This commit is contained in:
Eray Özkural
2006-03-23 14:43:10 +00:00
parent 5e49ca50f7
commit 2a0fdf7919
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class Builder:
def from_name(name, authinfo = None):
# download package and return an installer object
# find package in repository
sf, reponame = ctx.sourcedb.get_spec(name)
sf, reponame = ctx.sourcedb.get_spec_repo(name)
src = sf.source
if src:
+1 -1
View File
@@ -642,7 +642,7 @@ def plan_emerge(A, rebuild_all):
def get_spec(name):
if ctx.sourcedb.has_spec(name):
return ctx.sourcedb.get_spec(name)[0]
return ctx.sourcedb.get_spec(name)
else:
raise Error(_('Cannot find source package: %s') % name)
def get_src(name):