1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- ignore release if not present

This commit is contained in:
Marcus Hüwe 2009-09-13 16:57:40 +00:00
parent fbd1fca228
commit eec733fda5

View File

@ -156,7 +156,10 @@ class Pac:
self.mp['apiurl'] = apiurl
self.filename = '%(name)s-%(version)s-%(release)s.%(arch)s.%(pacsuffix)s' % self.mp
if self.mp['release']:
self.filename = '%(name)s-%(version)s-%(release)s.%(arch)s.%(pacsuffix)s' % self.mp
else:
self.filename = '%(name)s-%(version)s.%(arch)s.%(pacsuffix)s' % self.mp
self.partname = '%s.part' % self.filename
self.mp['filename'] = self.filename