Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • build-docker/scripts
1 result
Show changes
Commits on Source (2)
......@@ -31,16 +31,10 @@ def scan_dir(path, pattern):
return found
def detect_rpm(path):
source = scan_dir(path, '*.src.rpm')
rpms = scan_dir(path, '*.rpm')
if len(source) == 0:
if len(rpm) == 0:
return []
elif len(source) != 1:
raise StandardError, 'There more than one source RPM in ' + path
if len(rpms) < 2:
raise StandardError, 'There should be at least 2 RPMS in ' + path
return rpms
def detect_deb(path):
......
......@@ -31,15 +31,9 @@ def scan_dir(path, pattern):
return found
def detect_rpm(path):
source = scan_dir(path, '*.src.rpm')
rpms = scan_dir(path, '*.rpm')
if len(source) == 0:
if len(rpm) == 0:
return []
elif len(source) != 1:
raise StandardError, 'There more than one source RPM in ' + path
if len(rpms) < 2:
raise StandardError, 'There should be at least 2 RPMS in ' + path
return rpms
......