aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpmbuildupdate3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate
index e0afe81..ba33514 100755
--- a/rpmbuildupdate
+++ b/rpmbuildupdate
@@ -202,7 +202,6 @@ sub build {
my ($message, $spec, @url, %specvars);
my ($newrelease, $release_prefix) = ($1,$2) if $release =~ /^(.*\d+)(\D*)$/g;
my $hdlist_spec = Hdlist::specnew($spec_path) or die "Unable to parse spec $spec_path\n";
-
if ($newversion) {
print "===> Building $pkg $newversion\n";
} else {
@@ -269,7 +268,7 @@ sub build {
# For %vars !
$specvars{$1} = $2 if /\%define\s+(\S+?)\s+(\S+)/g;
foreach my $i ('url', 'name', 'version', 'release') {
- $specvars{$i} = $1 if !$specvars{$i} && /$i\s*:\s+(\S+)/gi;
+ $specvars{$i} = $1 if !$specvars{$i} && /\b$i\s*:\s+(\S+)/gi;
}
if (/^\%changelog/) {