Репозитории ALT
S: | 2.028-alt5 |
5.1: | 2.027-alt4 |
4.1: | 2.027-alt2 |
4.0: | 2.027-alt1 |
3.0: | 2.027-alt0.3 |
Группа :: Разработка/Прочее
Пакет: cpan2rpm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: cpan2rpm-fix-untar-alt-viy.patch
Скачать
Скачать
--- bin/cpan2rpm 2007-03-01 01:35:31 +0200
+++ bin/cpan2rpm 2007-05-31 18:43:35 +0300
@@ -1172,7 +1172,11 @@
chomp($_ = qx/$cmd/);
$_ = (split)[5] unless $zip;
- $dst .= "/$1" if m|^(\S+)/|;
+ if (-d $dst.'/'.$_) { # many CPAN tarballs has directory w/o trailing /
+ $dst .= "/$_"; # example is VCP-autrijus-snapshot-0.9-20050110.tar.gz
+ } elsif (~m|^(\S+)/|) {
+ $dst .= "/$1";
+ }
$dst =~ s|/*$||; # path shouldn't end in / or tardir gets wiped
$dst =~ s|\./||; # paths in tarballs shouldn't be relative
return $dst;