spacepaste

  1.  
  2. #!/bin/bash
  3. PV="5.0_alpha2"
  4. if [[ PV == "9999" ]]; then
  5. EGIT_REPO_URI="git@github.com:PhoenicisOrg/phoenicis.git"
  6. EGIT_BRANCH="master"
  7. inherit git-r3
  8. unset SRC_URI
  9. unset KEYWORDS
  10. echo "1"
  11. elif [[ $PV =~ _(alpha|beta|gamma) ]]; then
  12. KEYWORDS="~amd64 ~x86"
  13. MPV=${PV//_"${BASH_REMATCH[1]}"/-"${BASH_REMATCH[1]}".}
  14. SRC_URI="https://github.com/PhoenicisOrg/phoenicis/archive/v${MPV}.tar.gz"
  15. echo "2"
  16. elif [[ PV == [0-9].[0-9]-rc[0-9] ]] || [[ PV == [0-9].[0-9] ]]; then
  17. SRC_URI="https://github.com/PhoenicisOrg/phoenicis/archive/v${PV}.tar.gz"
  18. KEYWORDS="amd64 x86"
  19. MPV=${PV}
  20. echo "3"
  21. fi
  22. echo $PV
  23. echo $MPV
  24. ### OUTPUTS
  25. 2
  26. 5.0_alpha2
  27. 5.0-alpha.2
  28. ### EBUILD $P DIGEST OUTPUTS
  29. # kreyren@dreamon /usr/portage/games-util/phoenicis $ ebuild phoenicis-5.0_alpha2.ebuild digest
  30. # >>> Downloading 'rsync://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz'
  31. # receiving incremental file list
  32. # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2)
  33. #
  34. # sent 8 bytes received 104 bytes 224.00 bytes/sec
  35. #total size is 0 speedup is 0.00
  36. #rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3]
  37. # No digest file available and download failed.
  38. #
  39. # >>> Downloading 'ftp://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz'
  40. # --2019-01-07 04:36:25-- ftp://mirror.dkm.cz/gentoo/distfiles/v9999.tar.gz
  41. # => ‘/usr/portage/distfiles/v9999.tar.gz’
  42. # Resolving mirror.dkm.cz... 86.49.49.49, 2a02:8300:8000:3::49
  43. # Connecting to mirror.dkm.cz|86.49.49.49|:21... connected.
  44. # Logging in as anonymous ... Logged in!
  45. # ==> SYST ... done. ==> PWD ... done.
  46. # ==> TYPE I ... done. ==> CWD (1) /gentoo/distfiles ... done.
  47. # ==> SIZE v9999.tar.gz ... done.
  48. #
  49. # ==> PASV ... done. ==> RETR v9999.tar.gz ...
  50. # No such file ‘v9999.tar.gz’.
  51. #
  52. # >>> Downloading 'rsync://ftp.fau.de/gentoo/distfiles/v9999.tar.gz'
  53. #
  54. # Willkommen auf dem RSYNC-server auf ftp.fau.de.
  55. # Nicht all unsere Mirror sind per rsync verfuegbar.
  56. #
  57. # Welcome to the RSYNC daemon on ftp.fau.de.
  58. # Not all of our mirrors are available through rsync.
  59. #
  60. #
  61. # receiving incremental file list
  62. # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2)
  63. #
  64. # sent 8 bytes received 112 bytes 240.00 bytes/sec
  65. # total size is 0 speedup is 0.00
  66. # rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3]
  67. # No digest file available and download failed.
  68. #
  69. # >>> Downloading 'rsync://ftp.vectranet.pl/gentoo/distfiles/v9999.tar.gz'
  70. #
  71. # receiving incremental file list
  72. # rsync: link_stat "/distfiles/v9999.tar.gz" (in gentoo) failed: No such file or directory (2)
  73. #
  74. # sent 8 bytes received 104 bytes 74.67 bytes/sec
  75. # total size is 0 speedup is 0.00
  76. # rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1659) [Receiver=3.1.3]
  77. # No digest file available and download failed.
  78. #
  79. # >>> Downloading 'https://github.com/PhoenicisOrg/phoenicis/archive/v9999.tar.gz'
  80. # --2019-01-07 04:36:27-- https://github.com/PhoenicisOrg/phoenicis/archive/v9999.tar.gz
  81. # Resolving github.com... 140.82.118.3, 140.82.118.4
  82. # Connecting to github.com|140.82.118.3|:443... connected.
  83. # HTTP request sent, awaiting response... 302 Found
  84. # Location: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 [following]
  85. # --2019-01-07 04:36:27-- https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999
  86. # Resolving codeload.github.com... 192.30.253.121, 192.30.253.120
  87. # Connecting to codeload.github.com|192.30.253.121|:443... connected.
  88. # HTTP request sent, awaiting response... 404 Not Found
  89. # 2019-01-07 04:36:28 ERROR 404: Not Found.
  90. #
  91. # !!! Couldn't download 'v9999.tar.gz'. Aborting.
  92. # !!! Fetch failed for v9999.tar.gz, can't update Manifest
  93. #### QUESTION
  94. Why?
  95.