fix multi cd handling
authorLudwig Nussel <ludwig.nussel@suse.de>
Fri, 7 Mar 2008 08:48:15 +0000 (08:48 +0000)
committerLudwig Nussel <ludwig.nussel@suse.de>
Fri, 7 Mar 2008 08:48:15 +0000 (08:48 +0000)
createyastdeps

index fd59c85..4aa124f 100755 (executable)
@@ -124,7 +124,7 @@ while (@ARGV)
        # multi cd support hack
        my $num = $data[0];
        if($pkg->{'baseurl'} =~ /1\/$/ && $num ne 0) {
-         $pkg->{'baseurl'} =~ s/1\//$num\//;
+         $pkg->{'baseurl'} =~ s/1\/$/$num\//;
        }
        $pkg->{'location'} = $data[1];
       } elsif ($tag eq 'Siz:') {