> On 2020-04-29, at 13:11, Ryan Schmidt <[email protected]> wrote:
> 
> 
> 
> On Apr 28, 2020, at 06:58, [email protected] wrote:
> 
>> Ryan Schmidt said:
>> 
>>> You want:
>>> 
>>> github.setup        snabb downtimed 1.0 version-
>>> github.tarball_from archive
>> 
>> but that results in 
>> https://github.com/snabb/downtimed/archive/version-1.0/downtimed-1.0.tar.gz 
>> (the version number in 2 places).
> 
> That's correct. It works. Use it.
> 
> 
>> i tried some variants of distname and tried
>> 
>> github.setup        snabb downtimed 1.0
>> distname            version-${version}
>> master_sites        ${homepage}/archive
>> 
>> and that works. it this acceptable?
> 
> Don't do that. Use the values that the github portgroup sets for you.

indeed it works,but can you explain why it works?

we want:
https://github.com/snabb/downtimed/archive/version-1.0.tar.gz

port distfiles says:
https://github.com/snabb/downtimed/archive/version-1.0/downtimed-1.0.tar.gz

port fetch says:
Attempting to fetch downtimed-1.0.tar.gz from 
htps://github.com/snabb/downtimed/archive/version-1.0

--->  Fetching distfiles for downtimed
--->  downtimed-1.0.tar.gz does not exist in 
/opt/local/var/macports/distfiles/downtimed
--->  Attempting to fetch downtimed-1.0.tar.gz from 
https://distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0--->  Attempting to fetch downtimed-1.0.tar.gz from 
http://lil.fr.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0--->  Attempting to fetch downtimed-1.0.tar.gz from 
http://nue.de.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0--->  Attempting to fetch downtimed-1.0.tar.gz from 
http://cph.dk.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0--->  Attempting to fetch downtimed-1.0.tar.gz from 
https://github.com/snabb/downtimed/archive/version-1.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   128  100   128    0     0    156      0 --:--:-- --:--:-- --:--:--   156
100 72033    0 72033    0     0  31214      0 --:--:--  0:00:02 --:--:--  105k

Reply via email to