Index: sitescripts/extensions/utils.py |
=================================================================== |
--- a/sitescripts/extensions/utils.py |
+++ b/sitescripts/extensions/utils.py |
@@ -213,17 +213,17 @@ class Configuration(object): |
return parser |
@property |
def basename(self): |
metadata = self.readMetadata() |
if metadata: |
return metadata.get('general', 'basename') |
- return os.path.basename(self.repository) |
+ return os.path.basename(os.path.normpath(self.repository)) |
def getDownloads(self): |
prefix = self.basename + '-' |
command = ['hg', 'locate', '-R', self.downloadsRepo, '-r', 'default'] |
for filename in subprocess.check_output(command).splitlines(): |
if filename.startswith(prefix) and filename.endswith(self.packageSuffix): |
yield (filename, filename[len(prefix):len(filename) - len(self.packageSuffix)]) |