# $i is the name of the BS project defining
#    the maintenance update at hand, aka:
#    xml sel -T -t -m /project -v @name -n project.xml
# $r is the basename of the BS buildtarget repo, aka:
#    xml sel -T -t -m /project/repository\[...\] -v @name -n project.xml
repo_urls+=(
  SUSE 'http://download.suse.de/ibs/${i:gs,:,:/}/$r/'
)

# FIXME this needs to be replaced with a lookup in the IBS,
# FIXME most probably a wholesale prefetch and cache
# FIXME see osc -A ibs api '/source/SUSE?view=verboseproductlist&expand=1'
#
# keys concatenate the issuer, colon, and project name stripped
# of the "SUSE:Updates:" prefix and the colon-version-colon-arch
# suffix.
# values are lowercased product names as listed in product files,
# without any "suse_" prefix.
product_names+=(
  SUSE:12-Cloud-Compute suse-sle12-cloud-compute
  SUSE:OpenStack-Cloud  suse-openstack-cloud
  SUSE:SLE-DESKTOP      sled
  SUSE:SLE-RT           suse-linux-enterprise-rt
  SUSE:SLE-SAP          sles_sap
  SUSE:SLE-SAP-AIO      sap-aio
  SUSE:SLE-SERVER       sles
  SUSE:SLES4VMWARE      sles-for-vmware
  SUSE:SUSE-MANAGER     suse-manager-server
  SUSE:Storage          ses
)
