commit:     321e02c766fd96bd316c9732c14042e67d89c5a0
Author:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  2 02:39:50 2018 +0000
Commit:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Sun Sep  2 02:43:25 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=321e02c7

net-wireless/hostapd: 9999: add snapshot versions logic

Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-wireless/hostapd/hostapd-9999.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/net-wireless/hostapd/hostapd-9999.ebuild 
b/net-wireless/hostapd/hostapd-9999.ebuild
index e7978ed1696..342d0151c2d 100644
--- a/net-wireless/hostapd/hostapd-9999.ebuild
+++ b/net-wireless/hostapd/hostapd-9999.ebuild
@@ -15,7 +15,12 @@ if [[ $PV == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://w1.fi/hostap.git";
 else
-       SRC_URI+=" https://w1.fi/releases/${P}.tar.gz";
+       if [[ $PV =~ ^.*_p[0-9]{8}$ ]]; then
+               SRC_URI+=" 
https://dev.gentoo.org/~andrey_utkin/distfiles/${P}.tar.xz";
+       else
+               SRC_URI+=" https://w1.fi/releases/${P}.tar.gz";
+       fi
+       # Never stabilize snapshot ebuilds please
        KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
 fi
 

Reply via email to