* fix: second arg to add_repo is of Repo type

This commit is contained in:
Eray Özkural
2005-10-19 15:44:05 +00:00
parent 6594b4a33e
commit 7de697f68f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ class RepoDB(object):
def add_repo(self, name, repo_info):
name = str(name)
repo_info = str(repo_info)
assert (isinstance(repo_info,Repo))
if self.d.has_key("repo-" + name):
raise Error(_('Repository %s already exists') % name)
self.d["repo-" + name] = repo_info
+1 -1
View File
@@ -5,10 +5,10 @@ PATH=$PATH:.
set -x
pisi-cli -Dtmp clean
pisi-cli -B -Dtmp remove unzip
pisi-cli -Dtmp remove-repo repo1
set -e
pisi-cli -Dtmp -E --ignore-build-no build tests/zip/pspec.xml tests/unzip/pspec.xml
pisi-cli -Dtmp index .
#pisi-cli -Dtmp remove-repo repo1
pisi-cli -Dtmp -d add-repo repo1 pisi-index.xml
pisi-cli -Dtmp list-repo
pisi-cli -Dtmp update-repo repo1