ALT Linux Bugzilla
– Attachment 2003 Details for
Bug 11937
fails on some tarballs
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
fix-untar-alt-viy
cpan2rpm-fix-untar-alt-viy.patch (text/plain), 568 bytes, created by
viy
on 2007-05-31 19:56:28 MSD
(
hide
)
Description:
fix-untar-alt-viy
Filename:
MIME Type:
Creator:
viy
Created:
2007-05-31 19:56:28 MSD
Size:
568 bytes
patch
obsolete
>--- 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11937
: 2003