aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2006-11-13 20:20:17 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2006-11-13 20:20:17 +0000
commita5ae5fc7033a0d13d999713620a2816b5aa3bc21 (patch)
tree99d61c85f26390f9c078d06b118d93ba587c7c05 /RepSys
parentd132547bf943cbeabc56edb71eb089033e8e5721 (diff)
downloadmgarepo-a5ae5fc7033a0d13d999713620a2816b5aa3bc21.tar
mgarepo-a5ae5fc7033a0d13d999713620a2816b5aa3bc21.tar.gz
mgarepo-a5ae5fc7033a0d13d999713620a2816b5aa3bc21.tar.bz2
mgarepo-a5ae5fc7033a0d13d999713620a2816b5aa3bc21.tar.xz
mgarepo-a5ae5fc7033a0d13d999713620a2816b5aa3bc21.zip
Fixed undeclared name "pkgdirurl" in "co" subcommand. Replaced url by
pkgdirurl, as in the rest of the code.
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/commands/co.py2
-rw-r--r--RepSys/rpmutil.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/RepSys/commands/co.py b/RepSys/commands/co.py
index 0c9d2dc..f2b4d64 100644
--- a/RepSys/commands/co.py
+++ b/RepSys/commands/co.py
@@ -23,7 +23,7 @@ def parse_options():
opts, args = parser.parse_args()
if len(args) not in (1, 2):
raise Error, "invalid arguments"
- opts.url = default_parent(args[0])
+ opts.pkgdirurl = default_parent(args[0])
if len(args) == 2:
opts.path = args[1]
else:
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index ed62901..0302089 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -344,11 +344,11 @@ def check_changed(url, all=0, show=0, verbose=0):
"nocurrent": nocurrent,
"nopristine": nopristine}
-def checkout(url, path=None, revision=None):
+def checkout(pkgdirurl, path=None, revision=None):
svn = SVN(baseurl=pkgdirurl)
- current = os.path.join(url, "current")
+ current = os.path.join(pkgdirurl, "current")
if path is None:
- _, path = os.path.split(url)
+ _, path = os.path.split(pkgdirurl)
svn.checkout(current, path, rev=revision, show=1)
def get_submit_info(path):