Bug 682214 - repo add_package cannot find pkg w/ -p option
Summary: repo add_package cannot find pkg w/ -p option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-04 13:34 UTC by dgao
Modified: 2011-07-15 19:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-04 20:26:19 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.