Avoid newlines in rpm_packages
[moonshot.git] / rpm-builder
index e7a9d91..5492784 100755 (executable)
@@ -64,6 +64,7 @@ def find_type(name):
 #
 def trim_target(t):
     match = re.match('([^/-]*/)?([^-/]+)', t)
+    if match is None: return ""
     return match.group(2)