Vito De Tullio wrote:
Hi all I'm an OpenSuse user. Usually I use smart to manage my programs, but sometimes I prefer zypper. How can I "import" smart channels into zypper repos? On https://bugs.launchpad.net/smart/+bug/246959 I found a way to make the zypper -> smart transition, but I cannot find an (easy... I could always type all the /etc/zypp/repos.d/*.repo files by hand) way to make the smart -> zypper conversion...
With yum it is quite easy because you can just symlink /etc/yum.repos.d to /etc/zypp/repos.d, However, smart seems to read channels from /etc/smart/channels, which have .channel extension. If you just symlink them, it should work, because the format is the same: # ln -s /etc/zypp/repos.d/openSUSE-11.1-Updates.repo /etc/smart/channels/openSUSE-11.1-Updates.channel # smart update New channel 'openSUSE-11.1-Updates (openSUSE-11.1-Updates)' detected. Include it? (Y/n): y # rm openSUSE-11.1-Updates.channel # smart update Removing channel 'openSUSE-11.1-Updates (openSUSE-11.1-Updates)' was suggested. Do you want to remove it? (Y/n): y So in theory, a cronjob that cleans all smarts channels (rm *.channel) and then for every repo file in /etc/zypp/repos.d creates a file with the same name but .channel extension ) should work (or the other way around, from smart to ZYpp). Another solution would be to patch smart to recognize .repo extension, or ZYpp to recognize .channel extension. Then one could set smart channel path to ZYpp's one or viceversa. cheers Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org