Fix ^(fedora|rhel) -c parsing.
authorjkratoch <>
Fri, 31 Jul 2009 06:12:04 +0000 (06:12 +0000)
committerjkratoch <>
Fri, 31 Jul 2009 06:12:04 +0000 (06:12 +0000)
bin/hammock

index 5171733..e1640ee 100755 (executable)
@@ -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;