Bug 212108

Summary: spectool fetches symlink, not file
Product: [Fedora] Fedora Reporter: Chris Weyl <cweyl>
Component: rpmdevtoolsAssignee: Ville Skyttä <scop>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: extras-qa, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-25 16:29:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fetch symlinks as files, not symlinks none

Description Chris Weyl 2006-10-25 04:05:20 UTC
Description of problem:
spectools seems to fetch symlinks in certain instances.

Version-Release number of selected component (if applicable):
rpmdevtools-5.2-1.fc6

How reproducible:
Use spectool against, e.g.,
http://www.drizzle.com/~pacifico/perl-Class-Data-Accessor.spec (from bug 211737)


Steps to Reproduce:
spectool -g perl-Class-Data-Accessor.spec

  
Actual results:

[build@zeus perl-Class-Data-Accessor]$ spectool -g perl-Class-Data-Accessor.spec 
--20:48:58-- 
ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Class/Class-Data-Accessor-0.03.tar.gz
           => `./.listing'
Resolving ftp.cpan.org... 209.221.142.118, 204.152.191.7
Connecting to ftp.cpan.org|209.221.142.118|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/CPAN/modules/by-module/Class ... done.
==> PASV ... done.    ==> LIST ... done.

    [          <=>                                                             
     ] 255,888     86.2K/s   in 2.9s   

20:49:08 (86.2 KB/s) - `./.listing' saved [255888]

Removed `./.listing'.
Creating symlink ./Class-Data-Accessor-0.03.tar.gz ->
../../../authors/id/C/CL/CLACO/Class-Data-Accessor-0.03.tar.gz
[build@zeus perl-Class-Data-Accessor]$ ls -l
total 12
lrwxrwxrwx 1 build build   62 Oct 24 20:49 Class-Data-Accessor-0.03.tar.gz ->
../../../authors/id/C/CL/CLACO/Class-Data-Accessor-0.03.tar.gz
-rw-rw-r-- 1 build build 5195 Jul 14 11:30 Class-Data-Accessor-0.03.tar.gz.srpm
-rw-rw-r-- 1 build build 1744 Oct 17 22:36 perl-Class-Data-Accessor.spec

Expected results:
Not a symlink, but the file :)

Comment 1 Ville Skyttä 2006-10-25 07:48:23 UTC
Reproduced, Cc'ing spectool upstream maintainer.

Comment 2 Ville Skyttä 2006-10-25 07:49:47 UTC
Created attachment 139312 [details]
Fetch symlinks as files, not symlinks

Comment 3 Nils Philippsen 2006-10-25 11:44:42 UTC
fixed in upstream spectool-1.0.8

Comment 4 Ville Skyttä 2006-10-25 16:29:19 UTC
Thanks, spectool 1.0.8 is included in rpmdevtools 5.3, which will appear in 
the next push.