diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-10-02 10:46:02 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-10-02 10:46:02 +0000 |
commit | 694e43858d52a1361c26775fdf995df703b9724d (patch) | |
tree | 2134984ba009773c888a83be26711d91f09570bc /eclass | |
parent | Hopefully last qa fix. Because wt can act as its own webserver and can't dep... (diff) | |
download | gentoo-2-694e43858d52a1361c26775fdf995df703b9724d.tar.gz gentoo-2-694e43858d52a1361c26775fdf995df703b9724d.tar.bz2 gentoo-2-694e43858d52a1361c26775fdf995df703b9724d.zip |
Change the documentation a bit and take OBS_PACKAGE from PN if not set.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/obs-download.eclass | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 2e32936e7994..859f45e7a6e1 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.424 2012/10/02 08:14:36 kensington Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.425 2012/10/02 10:46:02 scarabeus Exp $ + + 02 Oct 2012; Tomáš Chvátal <scarabeus@gentoo.org> obs-download.eclass: + Change the documentation a bit and take OBS_PACKAGE from PN if not set. 02 Oct 2012; Michael Palimaka <kensington@gentoo.org> cmake-utils.eclass, virtualx.eclass: diff --git a/eclass/obs-download.eclass b/eclass/obs-download.eclass index d11f6db9c755..42c55152fe29 100644 --- a/eclass/obs-download.eclass +++ b/eclass/obs-download.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-download.eclass,v 1.2 2012/08/17 13:04:25 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/obs-download.eclass,v 1.3 2012/10/02 10:46:02 scarabeus Exp $ # @ECLASS: obs-download.eclass # @MAINTAINER: @@ -21,21 +21,23 @@ # @ECLASS-VARIABLE: OPENSUSE_RELEASE # @DEFAULT_UNSET # @DESCRIPTION: -# From which stable openSUSE realease to take files. +# From which openSUSE realease to take files. +# Eg.: 12.1, 12.2, Factory # @ECLASS-VARIABLE: OBS_PROJECT # @DEFAULT_UNSET # @DESCRIPTION: -# In which obs project pakage is. This variable don't have to be set, if +# In which obs project pakage is. +# This variable does not have to be set, if # OPENSUSE_RELEASE is provided. # @ECLASS-VARIABLE: OBS_PACKAGE -# @REQUIRED # @DESCRIPTION: # Name of the package we want to take files from. +# By default taken from ${PN}. [[ -z ${OPENSUSE_RELEASE} ]] || OBS_PROJECT="openSUSE:${OPENSUSE_RELEASE}" [[ -n ${OBS_PROJECT} ]] || die "OBS_PROJECT not set!" -[[ -n ${OBS_PACKAGE} ]] || die "OBS_PACKAGE not set!" +[[ -n ${OBS_PACKAGE} ]] || OBS_PACKAGE="${PN}" OBS_URI="https://api.opensuse.org/public/source/${OBS_PROJECT}/${OBS_PACKAGE}" |