From: jkratoch <> Date: Fri, 31 Jul 2009 06:12:04 +0000 (+0000) Subject: Fix ^(fedora|rhel) -c parsing. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=8ef6e4fcd0848365cdcf21b7b2aa0ad176fcdbac Fix ^(fedora|rhel) -c parsing. --- 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;