summaryrefslogtreecommitdiffstats
path: root/modules/package.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-21 13:30:23 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-21 13:30:23 -0500
commitf421d00c34d5bc475c80a2ad0c98e3d35a63b938 (patch)
tree13526c154c6316e78b0748247d759b74c8c3e5b1 /modules/package.py
parent89a3e791631b7b04e4396374f25ed64999f3a424 (diff)
downloadfedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.tar.gz
fedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.tar.xz
fedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.zip
Bug fixes to make the demo work.
Diffstat (limited to 'modules/package.py')
-rw-r--r--modules/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/package.py b/modules/package.py
index e53f0dd..4fb1605 100644
--- a/modules/package.py
+++ b/modules/package.py
@@ -18,7 +18,7 @@
from __future__ import with_statement
-from os.path import split
+from os.path import basename, abspath
from base.base import log
from base.factories import DirFactory
@@ -56,7 +56,8 @@ class Package(Directory):
log.debug('spec_file_name is %s' % self.name + '.spec')
#TODO: get the spec file name, copy
# Then get the actual package name and set pkg_name to the right one
- spec_fname = split(spec_file)[1]
+ spec_file = abspath(spec_file)
+ spec_fname = basename(spec_file)
with pwd(self.dir):
try:
copy(spec_file, spec_fname)