aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r--RepSys/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index e35639d..ac54046 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.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.rpm import SRPM
from RepSys.log import specfile_svn2rpm
@@ -223,7 +223,7 @@ def create_package(pkgdirurl, log="", verbose=0):
svn = SVN(baseurl=pkgdirurl)
tmpdir = tempfile.mktemp()
try:
- basename = os.path.basename(pkgdirurl)
+ basename = RepSysTree.pkgname(pkgdirurl)
if verbose:
print "Creating package directory...",
sys.stdout.flush()