- we need to fake a archpkg 'source' entry for poor OBS...
authorMichael Schroeder <mls@suse.de>
Tue, 3 Apr 2012 16:26:03 +0000 (18:26 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 3 Apr 2012 16:26:03 +0000 (18:26 +0200)
Build/Arch.pm

index 5c1139f..0b924f9 100644 (file)
@@ -132,6 +132,9 @@ sub query {
   if ($opts{'description'}) {
     $ret->{'description'} = $vars{'pkgdesc'}->[0] if $vars{'pkgdesc'};
   }
+  # arch packages don't seem to have a source :(
+  # fake it so that the package isn't confused with a src package
+  $ret->{'source'} = $ret->{'name'} if defined $ret->{'name'};
   return $ret;
 }