commit:     97393f4f63da69b87a34811f9620d26799941dff
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  7 15:10:34 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Oct  7 15:11:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97393f4f

net-analyzer/notus-scanner: remove conditional patching

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-analyzer/notus-scanner/notus-scanner-22.6.0.ebuild | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/net-analyzer/notus-scanner/notus-scanner-22.6.0.ebuild 
b/net-analyzer/notus-scanner/notus-scanner-22.6.0.ebuild
index 136c08284b4a..c0dcb14e48c9 100644
--- a/net-analyzer/notus-scanner/notus-scanner-22.6.0.ebuild
+++ b/net-analyzer/notus-scanner/notus-scanner-22.6.0.ebuild
@@ -31,6 +31,10 @@ RDEPEND="
        app-misc/mosquitto
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-remove-tests.patch
+)
+
 DOC_CONTENTS="
 For validating the feed content, a GnuPG keychain with the Greenbone Community 
Feed integrity key needs to be created.
 Please, read here on how to create it:
@@ -44,13 +48,6 @@ DISABLE_AUTOFORMATTING=true
 
 distutils_enable_tests unittest
 
-src_prepare() {
-       if use test; then
-               PATCHES+=( "${FILESDIR}"/${P}-remove-tests.patch )
-       fi
-       default
-}
-
 python_compile() {
        distutils-r1_python_compile
 }

Reply via email to