<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>11937</bug_id>
          
          <creation_ts>2007-05-31 19:55:37 +0400</creation_ts>
          <short_desc>fails on some tarballs</short_desc>
          <delta_ts>2007-06-05 10:18:04 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>cpan2rpm</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="viy">viy</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50857</commentid>
    <comment_count>0</comment_count>
    <who name="viy">viy</who>
    <bug_when>2007-05-31 19:55:37 +0400</bug_when>
    <thetext>fails on some tarballs VCP-autrijus-snapshot-0.9-20050110.tar.gz, SVN-Simple...
patch is proposed
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 .= &quot;/$1&quot; if m|^(\S+)/|;
+    if (-d $dst.&apos;/&apos;.$_) { # many CPAN tarballs has directory w/o trailing /
+	$dst .= &quot;/$_&quot;;    # example is VCP-autrijus-snapshot-0.9-20050110.tar.gz
+    } elsif (~m|^(\S+)/|) {
+	$dst .= &quot;/$1&quot;;
+    }
     $dst =~ s|/*$||;    # path shouldn&apos;t end in / or tardir gets wiped
     $dst =~ s|\./||;    # paths in tarballs shouldn&apos;t be relative
     return $dst;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50858</commentid>
    <comment_count>1</comment_count>
      <attachid>2003</attachid>
    <who name="viy">viy</who>
    <bug_when>2007-05-31 19:56:28 +0400</bug_when>
    <thetext>Created attachment 2003
fix-untar-alt-viy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51093</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2007-06-05 10:17:54 +0400</bug_when>
    <thetext>thanks :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2003</attachid>
            <date>2007-05-31 19:56:28 +0400</date>
            <delta_ts>2007-05-31 19:56:28 +0400</delta_ts>
            <desc>fix-untar-alt-viy</desc>
            <filename>cpan2rpm-fix-untar-alt-viy.patch</filename>
            <type>text/plain</type>
            <size>568</size>
            <attacher name="viy">viy</attacher>
            
              <data encoding="base64">LS0tIGJpbi9jcGFuMnJwbQkyMDA3LTAzLTAxIDAxOjM1OjMxICswMjAwCisrKyBiaW4vY3BhbjJy
cG0JMjAwNy0wNS0zMSAxODo0MzozNSArMDMwMApAQCAtMTE3Miw3ICsxMTcyLDExIEBACiAKICAg
ICBjaG9tcCgkXyA9IHF4LyRjbWQvKTsKICAgICAkXyA9IChzcGxpdClbNV0gdW5sZXNzICR6aXA7
Ci0gICAgJGRzdCAuPSAiLyQxIiBpZiBtfF4oXFMrKS98OworICAgIGlmICgtZCAkZHN0LicvJy4k
XykgeyAjIG1hbnkgQ1BBTiB0YXJiYWxscyBoYXMgZGlyZWN0b3J5IHcvbyB0cmFpbGluZyAvCisJ
JGRzdCAuPSAiLyRfIjsgICAgIyBleGFtcGxlIGlzIFZDUC1hdXRyaWp1cy1zbmFwc2hvdC0wLjkt
MjAwNTAxMTAudGFyLmd6CisgICAgfSBlbHNpZiAofm18XihcUyspL3wpIHsKKwkkZHN0IC49ICIv
JDEiOworICAgIH0KICAgICAkZHN0ID1+IHN8LyokfHw7ICAgICMgcGF0aCBzaG91bGRuJ3QgZW5k
IGluIC8gb3IgdGFyZGlyIGdldHMgd2lwZWQKICAgICAkZHN0ID1+IHN8XC4vfHw7ICAgICMgcGF0
aHMgaW4gdGFyYmFsbHMgc2hvdWxkbid0IGJlIHJlbGF0aXZlCiAgICAgcmV0dXJuICRkc3Q7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>