#!/bin/bash PV="5.0_alpha2" if [[ PV == "9999" ]]; then EGIT_REPO_URI="git@github.com:PhoenicisOrg/phoenicis.git" EGIT_BRANCH="master" inherit git-r3 unset SRC_URI unset KEYWORDS echo "1" elif [[ $PV =~ _(alpha|beta|gamma) ]]; then KEYWORDS="~amd64 ~x86" MPV=${PV//_"${BASH_REMATCH[1]}"/-"${BASH_REMATCH[1]}".} SRC_URI="https://github.com/PhoenicisOrg/phoenicis/archive/v${MPV}.tar.gz" echo "2" elif [[ PV == [0-9].[0-9]-rc[0-9] ]] || [[ PV == [0-9].[0-9] ]]; then SRC_URI="https://github.com/PhoenicisOrg/phoenicis/archive/v${PV}.tar.gz" KEYWORDS="amd64 x86" MPV=${PV} echo "3" fi echo $PV echo $MPV ### OUTPUTS 2 5.0_alpha2 5.0-alpha.2 ### EBUILD $P DIGEST OUTPUTS # kreyren@dreamon /usr/portage/games-util/phoenicis $ ebuild phoenicis-5.0_alpha2.ebuild digest # >>> Downloading 'rsync://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz' # receiving incremental file list # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2) # # sent 8 bytes received 104 bytes 224.00 bytes/sec #total size is 0 speedup is 0.00 #rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3] # No digest file available and download failed. # # >>> Downloading 'ftp://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz' # --2019-01-07 04:36:25-- ftp://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz # => ‘/usr/portage/distfiles/v9999.tar.gz’ # Resolving mirror.dkm.cz... 86.49.49.49, 2a02:8300:8000:3::49 # Connecting to mirror.dkm.cz|86.49.49.49|:21... connected. # Logging in as anonymous ... Logged in! # ==> SYST ... done. ==> PWD ... done. # ==> TYPE I ... done. ==> CWD (1) /gentoo/distfiles ... done. # ==> SIZE v9999.tar.gz ... done. # # ==> PASV ... done. ==> RETR v9999.tar.gz ... # No such file ‘v9999.tar.gz’. # # >>> Downloading 'rsync://ftp.fau.de/gentoo/distfiles/v9999.tar.gz' # # Willkommen auf dem RSYNC-server auf ftp.fau.de. # Nicht all unsere Mirror sind per rsync verfuegbar. # # Welcome to the RSYNC daemon on ftp.fau.de. # Not all of our mirrors are available through rsync. # # # receiving incremental file list # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2) # # sent 8 bytes received 112 bytes 240.00 bytes/sec # total size is 0 speedup is 0.00 # rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3] # No digest file available and download failed. # # >>> Downloading 'rsync://ftp.vectranet.pl/gentoo/distfiles/v9999.tar.gz' # # receiving incremental file list # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2) # # sent 8 bytes received 104 bytes 74.67 bytes/sec # total size is 0 speedup is 0.00 # rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3] # No digest file available and download failed. # # >>> Downloading 'https://github.com/PhoenicisOrg/phoenicis/archive/v9999.tar.gz' # --2019-01-07 04:36:27-- https://github.com/PhoenicisOrg/phoenicis/archive/v9999.tar.gz # Resolving github.com... 140.82.118.3, 140.82.118.4 # Connecting to github.com|140.82.118.3|:443... connected. # HTTP request sent, awaiting response... 302 Found # Location: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 [following] # --2019-01-07 04:36:27-- https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 # Resolving codeload.github.com... 192.30.253.121, 192.30.253.120 # Connecting to codeload.github.com|192.30.253.121|:443... connected. # HTTP request sent, awaiting response... 404 Not Found # 2019-01-07 04:36:28 ERROR 404: Not Found. # # !!! Couldn't download 'v9999.tar.gz'. Aborting. # !!! Fetch failed for v9999.tar.gz, can't update Manifest #### QUESTION Why?