aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/log.py')
-rw-r--r--RepSys/log.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 62a290d..cf913f8 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-from RepSys import Error, config
+from RepSys import Error, config, RepSysTree
from RepSys.svn import SVN
from RepSys.util import execcmd
@@ -52,7 +52,7 @@ def getrelease(pkgdirurl, rev=None):
svn = SVN(baseurl=pkgdirurl)
tmpdir = tempfile.mktemp()
try:
- pkgname = os.path.basename(pkgdirurl)
+ pkgname = RepSysTree.pkgname(pkgdirurl)
pkgcurrenturl = os.path.join(pkgdirurl, "current")
specurl = os.path.join(pkgcurrenturl, "SPECS")
if svn.ls(specurl, noerror=1):
@@ -394,7 +394,7 @@ def specfile_svn2rpm(pkgdirurl, specfile, rev=None, size=None,
svn = SVN(baseurl=pkgdirurl)
tmpdir = tempfile.mktemp()
try:
- pkgname = os.path.basename(pkgdirurl)
+ pkgname = RepSysTree.pkgname(pkgdirurl)
pkgoldurl = os.path.join(oldurl, pkgname)
if svn.ls(pkgoldurl, noerror=1):
svn.export(pkgoldurl, tmpdir, rev=rev)