Bug 682214

Summary: repo add_package cannot find pkg w/ -p option
Product: [Retired] Pulp Reporter: dgao
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: jmatthew
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-04 20:26: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:

Description dgao 2011-03-04 13:34:59 UTC
[root@pulp-nightly ~]# pulp-admin repo create --id=foo
Successfully created repository [ foo ]


[root@pulp-nightly ~]# pulp-admin content upload /tmp/parent-1.0-1.noarch.rpm 
* Starting Package Upload operation. See /var/log/pulp/client.log for more verbose output

* Performing Package Uploads to Pulp server

* Content Upload complete.
[root@pulp-nightly ~]# pulp-admin package search
+------------------------------------------+
             Package Information
+------------------------------------------+
Name  	EVRA                      	Filename               	Repositories
parent	0:1.0-1.noarch            	parent-1.0-1.noarch.rpm	


[root@pulp-nightly ~]# pulp-admin content list --orphaned
parent-1.0-1.noarch.rpm,b1d66501cf7494f13ebef843017179979476023282c457fe67c33b2a7f30a27b


[root@pulp-nightly ~]# pulp-admin repo add_package --id=foo -p parent
Package parent could not be found skipping


[root@pulp-nightly ~]# pulp-admin content list --orphaned > tmp.csv
[root@pulp-nightly ~]# pulp-admin repo add_package --id=foo --csv=tmp.csv 
No Source repo specified, skipping dependency lookup
Successfully added packages [u'parent-1.0-1.noarch'] to repo [foo].

Comment 1 dgao 2011-03-04 14:09:23 UTC
Apparently, inputting the entire pkg filename to the -p option still works. In the past, the truncated pkg name works in the past as well, so this is a minor regression.

Comment 2 John Matthews 2011-03-04 17:31:04 UTC
bug 681804 required that we are able to handle package/file names that have characters such as "++".  The fix for this was to require the full filename in order to do an add.

Prior to this a subset of the name would be sufficient as long as it resulted in a unique result.  (The subset of text was passed into package search as a regex, now that is disabled and the full filename is required.)


Suggest this gets CLOSED as NOTABUG