From 2a0fdf7919a5f18f85ba1b82fc5af5a559ea6f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 23 Mar 2006 14:43:10 +0000 Subject: [PATCH] * fix: accomodate for sourcedb changes (thanks bahadir for showing the bug) --- pisi/build.py | 2 +- pisi/operations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index 5b1c3353..3bb8d57e 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -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: diff --git a/pisi/operations.py b/pisi/operations.py index 549e1bac..83687823 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -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):