Comment # 1 on bug 911658 from
> $ cat /etc/zypp/repos.d/packman.repo
> [packman]
> name=packman
> baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/$releasever
> type=rpm-md
> enabled=1
> autorefresh=1

Zypp already supports variable substitution in the repository URL.
'$releasever' is replaced by the distro version as defined in
/etc/products.d/baseproduct (tag: product/version).

(not officially supported, but it's possible to edit the version field in
/etc/products.d/baseproduct and then call 'zypper dup').


The missing piece is providing means to override the value found in
/etc/products.d/baseproduct. It's probably easy to introduce some environment
variable for this (this way it can be used with zypper as well as with yast)

> $ zypper lr packman | grep ^URI
> URI            : http://ftp.gwdg.de/pub/linux/packman/suse/13.1
> $ export ZYPP_REPO_RELEASEVER=13.2
> $ zypper lr packman | grep ^URI
> URI            : http://ftp.gwdg.de/pub/linux/packman/suse/13.2
> $ zypper dup 
> ....upgrades to 13.2...

I'd prefer this approach over the script.


You are receiving this mail because: