Description of problem. Running repo update with --relativepath option always fails now since createrepo is being run at repo create time. So the option needs to be removed from repo update.
Need to remove the --relativepath option from the CLI and the API class. While we're there, let's make sure the --feed check is correct. It needs to make sure the relative path is not changed. We can also remove the code that checks to see if the repo has content. Since the repo always has metadata, it's probably broken anyway.
commit 58b2e4aa2d8d95dcab7c33c867be00c5b7d0a473 Author: Pradeep Kilambi <pkilambi> Date: Fri Jun 17 10:40:45 2011 -0400 707295 - removed relativepath from repo update; updated feed update logic to check if relative path matches before allowing update $ sudo pulp-admin repo create --id=testrepo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/ Successfully created repository [ testrepo ] $ sudo pulp-admin repo update --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/ --id=testrepo Successfully updated repository [ testrepo ] $ sudo pulp-admin repo update --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/fake/ --id=testrepo error: operation failed: PulpException: u'Relativepath of the new feed [repos/pulp/pulp/demo_repos/test_bandwidth_repo/fake] does not match existing feed [repos/pulp/pulp/demo_repos/test_bandwidth_repo]; cannot perform update'
build: 0.192
[root@preethi ~]# rpm -q pulp pulp-0.0.202-1.fc14.noarch [root@preethi ~]# pulp-admin repo create --id=testrepo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/ Successfully created repository [ testrepo ] [root@preethi ~]# pulp-admin repo update --id=testrepo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/ Successfully updated repository [ testrepo ] [root@preethi ~]# pulp-admin repo update --id=testrepo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_bandwidth_repo/fake/ error: operation failed: PulpException: u'Relativepath of the new feed [repos/pulp/pulp/demo_repos/test_bandwidth_repo/fake] does not match existing feed [repos/pulp/pulp/demo_repos/test_bandwidth_repo]; cannot perform update' [root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4.