Am 03.02.2010 14:54, schrieb Roger Oberholtzer:
[...] The script provides the name of the RPM on the current system, like:
libstdc++44-4.4.1_20090817-2.3.4.i586 libtiff3-3.8.2-145.2.i586 libuuid1-2.16-4.5.1.i586 libxml++-2.26.1-2.2.i586 libxml2-2.7.3-2.2.i586 openmotif-libs-2.3.1-10.1.i586 tcl-8.5.7-4.6.i586 tk-8.5.7-3.1.i586 xorg-x11-libICE-7.4-7.1.i586
I want to make the script a little less specific about versions. Like the i586, or the OBS build number. For example, for tcl I would like:
tcl-8.5.7
or for the xorg item:
xorg-x11-libICE-7.4
My use is a bit restricted, in that the script will be generated on a machine running the same openSUSE release where the ypm script should run. But the various machines may have different upgrades applied.
I can't see how one could figure this out for the various names here. Just look at the first and the last in my list.
That's easy remove the last '-' and everything behind. Version and release numbers and architectures do not include any '-'. If you construct the list with help of "rpm -q", you can use --qf option to tailor the output format for you needs.
[...]
Herbert -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org