Bug 1025903

Summary: RPM file path includes directory names from upstream
Product: [Retired] Pulp Reporter: Michael Hrivnak <mhrivnak>
Component: rpm-supportAssignee: pulp-bugs
Status: CLOSED DUPLICATE QA Contact: pulp-qe-list
Severity: unspecified Docs Contact:
Priority: medium    
Version: MasterCC: cduryee, jsherril, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-23 00:17:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Hrivnak 2013-11-01 21:54:28 UTC
Description of problem:
When pulp saves an RPM to disk, it saves the relative path as it appears in the repo's metadata. This is harmless, but it would be better to strip any leading directories off the path as it appears in the XML. Currently, the same RPM could be saved on disk twice if it appears in two different directories within two different repos.

Version-Release number of selected component (if applicable):
2.3

How reproducible:
always

Steps to Reproduce:
1. sync a repository that puts RPMs in a directory like "Packages"
2. look in /var/lib/pulp/content/rpm/path/to/an/rpm

Actual results:
the directory tree ends in "Packages" or whatever the directory name is from step 

Expected results:
the directory tree should not include the "Packages" directory

Comment 1 Chris Duryee 2014-09-23 00:17:20 UTC
I believe this was fixed as part of #1093745. If that is not the case, feel free to re-open.

*** This bug has been marked as a duplicate of bug 1093745 ***