Description of problem: [root@preethi os]# rpm -q pulp pulp-0.0.92-1.fc13.noarch 1. create and sync a f13/f14 repo 2. run repo sync 3. run distribution list --repoid=f13 3. Run repo sync again 4. run distribution list --repoid see that the same distribution is listed twice [root@preethi ~]# pulp-admin distribution list --repoid=f13 +------------------------------------------+ List of Available Distributions +------------------------------------------+ Id ks-f13-x86_64 Description ks-f13-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os [root@preethi ~]# pulp-admin repo sync --id=f13 -F Sync for repository f13 started You can safely CTRL+C this current command and it will continue [==================================================] 100% (3111 of 3111 pkgs) Sync: Finished You have new mail in /var/spool/mail/root [root@preethi ~]# pulp-admin distribution list --repoid=f13 +------------------------------------------+ List of Available Distributions +------------------------------------------+ Id ks-f13-x86_64 Description ks-f13-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os Id ks-f13-x86_64 Description ks-f13-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os
fixed! commit ace4d407444fb2f77c11dbd08f7d3812e1b909a8 Author: Pradeep Kilambi <pkilambi> Date: Thu Nov 18 11:07:05 2010 -0500 bug#654681 - Only add distro id to repo if same id doesnt already exist
Fixed in 0.109.
verified [root@preethi ~]# pulp-admin distribution list +------------------------------------------+ List of Available Distributions +------------------------------------------+ Id ks-f13-x86_64 Description ks-f13-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os Id ks-f14-x86_64 Description ks-f14-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/14/Fedora/x86_64/os You have new mail in /var/spool/mail/root [root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f14 -F Sync for repository f14 started You can safely CTRL+C this current command and it will continue [==================================================] 100% (2773 of 2773 pkgs) Sync: Finished You have new mail in /var/spool/mail/root [root@preethi ~]# pulp-admin distribution list +------------------------------------------+ List of Available Distributions +------------------------------------------+ Id ks-f13-x86_64 Description ks-f13-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os Id ks-f14-x86_64 Description ks-f14-x86_64 URL http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/14/Fedora/x86_64/os
Closing with Community Release 15 pulp-0.0.223-4.