diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-11-15 19:49:34 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-11-15 19:49:34 +0000 |
commit | 5522949475e51d17988c155eefda7fe12663e334 (patch) | |
tree | 515f0115253242a2780512279136ba1f05997b54 /eclass/obs-service.eclass | |
parent | x86 stable, see bug 429484 (diff) | |
download | historical-5522949475e51d17988c155eefda7fe12663e334.tar.gz historical-5522949475e51d17988c155eefda7fe12663e334.tar.bz2 historical-5522949475e51d17988c155eefda7fe12663e334.zip |
Use src_uri arrows to allow versioning sanely.
Diffstat (limited to 'eclass/obs-service.eclass')
-rw-r--r-- | eclass/obs-service.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/obs-service.eclass b/eclass/obs-service.eclass index ff6544210e39..2756ab9b1f32 100644 --- a/eclass/obs-service.eclass +++ b/eclass/obs-service.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.5 2012/10/02 10:52:31 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.6 2012/11/15 19:49:34 scarabeus Exp $ # @ECLASS: obs-service.eclass # @MAINTAINER: @@ -53,8 +53,9 @@ DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service" inherit obs-download -SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME}" -SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service" +# As it aint versioned at all use arrows to deal with it +SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME} -> ${OBS_SERVICE_NAME}-${PV}" +SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service -> ${OBS_SERVICE_NAME}-${PV}.service" for i in ${ADDITIONAL_FILES}; do SRC_URI+=" ${OBS_URI}/${i}" @@ -88,9 +89,9 @@ obs-service_src_install() { debug-print-function ${FUNCNAME} "$@" debug-print "Installing service \"${OBS_SERVICE_NAME}\"" exeinto /usr/lib/obs/service - doexe "${S}"/${OBS_SERVICE_NAME} + newexe "${S}"/${OBS_SERVICE_NAME}-${PV} "${S}"/${OBS_SERVICE_NAME} insinto /usr/lib/obs/service - doins "${S}"/${OBS_SERVICE_NAME}.service + newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service "${S}"/${OBS_SERVICE_NAME}.service if [[ -n ${ADDITIONAL_FILES} ]]; then debug-print "Installing following additional files:" debug-print " ${ADDITIONAL_FILES}" |