Bug 641372

Summary: Upload w/ --dir option returns an error
Product: [Retired] Pulp Reporter: dgao
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jmatthew, pthomas
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:00:32 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:
Bug Depends On:    
Bug Blocks: 641987    

Description dgao 2010-10-08 14:47:41 UTC
When passing in a directory of rpm file(s) for upload, pulp returns an error message of "need to provide at least one file to perform upload"

[root@pulp-latest /]# pulp-admin -u admin -p admin repo upload --id=f13test --dir=/tmp
Stderr: need to provide at least one file to perform upload

[root@pulp-latest /]# ls /tmp/*.rpm
/tmp/patb-0.1-1.x86_64.rpm

Comment 1 John Matthews 2010-10-08 15:11:22 UTC
Thanks to dgao for providing the fix.

Commit is here:
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=398dd919b370f5e2505c934b5db38f223ebb2400

Comment 2 Jay Dobies 2010-10-15 12:24:18 UTC
Fixed in the 0.73 release.

Comment 3 Preethi Thomas 2010-10-18 14:52:41 UTC
verified

[root@preethi ~]# pulp-admin repo upload --id=upload  --dir=rpm-dir/Successful uploaded [pulp-tools-0.0.52-1.fc13.noarch.rpm] to repo [ upload ]
Successful uploaded [pulp-0.0.52-1.fc13.noarch.rpm] to repo [ upload ]

Comment 4 Preethi Thomas 2011-08-16 14:00:32 UTC
Closing with Community Release 15

pulp-0.0.223-4.