app-crypt/certbot: remove acme dir correctly
authorMatthew Thode <prometheanfire@gentoo.org>
Fri, 3 Jan 2020 20:00:51 +0000 (14:00 -0600)
committerMatthew Thode <prometheanfire@gentoo.org>
Fri, 3 Jan 2020 20:00:51 +0000 (14:00 -0600)
Fixes: https://bugs.gentoo.org/703926
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
app-crypt/certbot/certbot-1.0.0-r1.ebuild
app-crypt/certbot/certbot-9999.ebuild

index 37c17aa225d32df98d881d638594de2767d4031c..dd227e9e27f76ffeae4b806424f58bb663f1caf4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -7,12 +7,11 @@ PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7})
 if [[ ${PV} == 9999* ]]; then
        EGIT_REPO_URI="https://github.com/certbot/certbot.git"
        inherit git-r3
-       S=${WORKDIR}/${P}/${PN}
 else
        SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-       S=${WORKDIR}/certbot-${PV}/certbot
 fi
+S=${WORKDIR}/${P}/${PN}
 
 inherit distutils-r1
 
@@ -47,6 +46,6 @@ DEPEND="
 
 python_test() {
        # acme is not installed, removing it here is fine, the dir just confuses tests
-       rm -R acme
+       rm -R ../acme
        pytest -vv ${PN} || die
 }
index fba37e4616cb3c6902e6f2bdcf5361e5297c39ec..d53164ebcea2448caa38e9af8267c6da7f9d9c1a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,6 +11,7 @@ else
        SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
 fi
+S=${WORKDIR}/${P}/${PN}
 
 inherit distutils-r1
 
@@ -45,6 +46,6 @@ DEPEND="
 
 python_test() {
        # acme is not installed, removing it here is fine, the dir just confuses tests
-       rm -R acme
+       rm -R ../acme
        pytest -vv ${PN} || die
 }