Hi Erich:
 
I'm getting the following error in trunk on FC4 x86:
 
Executing: rpm -q createrepo-0.4.3-5.1e.noarch >/dev/null 2>&1
locate_pkg glob result: /tftpboot/oscar/fc-4-i386/createrepo-0.4.3-5.1e.noarch.rpm,/tftpboot/distro/fedora-4-i386/createrepo-0.4.3-5.1e.noarch.rpm
Executing: rpm -Uhv /tftpboot/distro/fedora-4-i386/createrepo-0.4.3-5.1e.noarch.rpm
error: open of /tftpboot/distro/fedora-4-i386/createrepo-0.4.3-5.1e.noarch.rpm failed: No such file or directory
install failed: No such file or directory
 at /opt/oscar/scripts/install_prereq line 187
        main::handle_dumb_rpms(0, 'perl-IO-Tty', 'python-urlgrabber', 'python-elementtree', 'yum', 'createrepo-0.4.3-5.1e.noarch.rpm', 'yume', 'packman-depman', 'packman-depman-rpms', ...) called at /opt/oscar/scripts/install_prereq line 125
Could not bootstrap smart package manager!
Oscar Wizard preparation script failed to complete at ./install_cluster line 223.
 
I don't think the code in locate_pkg is doing what you expect it to be doing.  Perhaps we should give preference to the oscar repo and if the package is located there, install that - otherwise install the one in distro and fail if it doesn't exist in either?  Or as you mentioned in your comments, there should be a version comparison in place.
 
BTW, while we're on topic, would it make more sense to put the distro/ oscar/ repositories under $OSCAR_ROOT now?  I'm thinking of /opt/oscar/repo/distro/ and /opt/oscar/repo/oscar/.
 
Cheers,
 
Bernard

Reply via email to