[root@pulp-nightly ~]# pulp-admin repo create --id=foo Successfully created repository [ foo ] [root@pulp-nightly ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id foo Name foo FeedURL None FeedType None Arch noarch Sync Schedule None Packages 0 Files 0 Distributions None Publish True Clones [] Groups None [root@pulp-nightly ~]# pulp-admin repo sync --id=foo error: operation failed: Repo [foo] is not setup for sync. Please add packages using upload. [root@pulp-nightly ~]# pulp-admin repo clone --id=foo --clone_id=bar -F Repository [foo] is being cloned as [bar] You can safely CTRL+C this current command and it will continue Traceback (most recent call last): ] 0% File "/usr/bin/pulp-admin", line 147, in <module> admin.main() File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 98, in main command.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main action.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 229, in main self.run() File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 350, in run self.clone_foreground(task) File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 318, in clone_foreground self.print_clone_progress(task['progress']) File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 294, in print_clone_progress portion = done / total ZeroDivisionError: float division [root@pulp-nightly ~]#
I abstracted the progress reporting into a new base class: RepoProgressAction, so that bugs found in the progress reporting will not be filed twice: once for sync and once for clone.
Verified pulp-admin repo create --id=feedless_repo Successfully created repository [ feedless_repo ] pulp-admin repo clone --id=feedless_repo --clone_id=feedless_clone_repo --feed=feedless -F Repository [feedless_repo] is being cloned as [feedless_clone_repo] You can safely CTRL+C this current command and it will continue [=========================] 100% Total: 0/0 items ) Clone: Finished
on_qa now build 128
[root@preethi ~]# rpm -q pulp pulp-0.0.128-1.fc14.noarch [root@preethi ~]# pulp-admin repo create --id=foo Successfully created repository [ foo ] [root@preethi ~]# pulp-admin repo clone --id=foo --clone_id=bar -F Repository [foo] is being cloned as [bar] You can safely CTRL+C this current command and it will continue [=========================] 100% Total: 0/0 items ) Clone: Finished
Closing with Community Release 15 pulp-0.0.223-4.