From 8ef6e4fcd0848365cdcf21b7b2aa0ad176fcdbac Mon Sep 17 00:00:00 2001 From: jkratoch <> Date: Fri, 31 Jul 2009 06:12:04 +0000 Subject: [PATCH] Fix ^(fedora|rhel) -c parsing. --- bin/hammock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hammock b/bin/hammock index 5171733..e1640ee 100755 --- a/bin/hammock +++ b/bin/hammock @@ -180,14 +180,14 @@ while (@distrouse || keys(%child)) { my $cvsbasedir; my $cvsroot; my $cvsrepo; - if ($component=~/^fedora/) { + if ($component=~/^fedora(.*)$/) { $cvsrepo=$1; $cvsbasedir="F-$1" if $distro=~/^fedora-(\d+)-$arches_re$/; $cvsbasedir="devel" if $distro=~/^fedora-rawhide-$arches_re$/; die "$component vs. $distro" if !$cvsbasedir; $cvsroot=$fedoracvsroot; } - if ($component=~/^rhel/) { + if ($component=~/^rhel(.*)$/) { $cvsrepo=$1; $cvsbasedir="RHEL-$1" if $distro=~/^epel-(\d+)-$arches_re$/; die "$component vs. $distro" if !$cvsbasedir; -- 1.8.3.1