Fix ^(fedora|rhel) -c parsing.
[nethome.git] / 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;