[Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Andrzej Telszewski

Hi,

When I try to download:
https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz

the suggested tarball name is:

"elementary-xfce-elementary-xfce-0.11.tar.gz"

Can someone knowledgeable (I know we have some here ;-)) tell me if it's 
possible to get the link in a way so that the tarball is actually:


"elementary-xfce-0.11.tar.gz"

?

Thanks!

--
Best regards / Pozdrawiam,
Andrzej Telszewski
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Didier Spaier
Hi,

Le 25/03/2018 à 18:46, Andrzej Telszewski a écrit :
> Hi,
> 
> When I try to download:
> https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
> 
> the suggested tarball name is:
> 
> "elementary-xfce-elementary-xfce-0.11.tar.gz"
> 
> Can someone knowledgeable (I know we have some here ;-)) tell me if it's 
> possible to get the link in a way so that the tarball is actually:
> 
> "elementary-xfce-0.11.tar.gz"

No issue here, using wget-1.19.4-x86_64-2_slack14.2

Command:
wget 
https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz

didier[~]$ ls -ltr elem*
-rw-r--r-- 1 didier users 7945508 mars  25 18:51 elementary-xfce-0.11.tar.gz


Didier
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Matteo Bernardini
2018-03-25 18:46 GMT+02:00 Andrzej Telszewski :
> Hi,
>
> When I try to download:
> https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
>
> the suggested tarball name is:
>
> "elementary-xfce-elementary-xfce-0.11.tar.gz"
>
> Can someone knowledgeable (I know we have some here ;-)) tell me if it's
> possible to get the link in a way so that the tarball is actually:
>
> "elementary-xfce-0.11.tar.gz"
>
> ?

I suppose you are using a browser to download it or wget with the
parameter "--content-disposition", but it's not your or github's
fault: if you look at the release page you can see that they seem to
have tagged it wrong, compare the releases below or equal to v0.9 to
the subsequent

https://github.com/shimmerproject/elementary-xfce/releases

with proper tagging, prepending the name of the tag should let you
specify a consistent (not depending on the download type) naming for
the tarball, for example

https://github.com/shimmerproject/elementary-xfce/archive/v0.9/elementary-xfce-0.9.tar.gz

but as tagging for the following releases is broken I don't have a
solution for you apart for adding an alternate extraction routine,
like

tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf
$CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz

Matteo
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Andrzej Telszewski

On 25/03/18 18:56, Didier Spaier wrote:

Hi,

Le 25/03/2018 à 18:46, Andrzej Telszewski a écrit :

Hi,

When I try to download:
https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz

the suggested tarball name is:

"elementary-xfce-elementary-xfce-0.11.tar.gz"

Can someone knowledgeable (I know we have some here ;-)) tell me if it's 
possible to get the link in a way so that the tarball is actually:

"elementary-xfce-0.11.tar.gz"

No issue here, using wget-1.19.4-x86_64-2_slack14.2

Command:
wgethttps://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz

didier[~]$ ls -ltr elem*
-rw-r--r-- 1 didier users 7945508 mars  25 18:51 elementary-xfce-0.11.tar.gz


OK then.
wget works as expected, Firefox doesn't.
Shit. Again.

--
Best regards / Pozdrawiam,
Andrzej Telszewski
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Frédéric Falsetti
On Sun, 25 Mar 2018 18:56:17 +0200
Didier Spaier  wrote:

> Hi,
> 
> Le 25/03/2018 à 18:46, Andrzej Telszewski a écrit :

> > When I try to download:
> > https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
> > 
> > the suggested tarball name is:
> > 
> > "elementary-xfce-elementary-xfce-0.11.tar.gz"

> No issue here, using wget-1.19.4-x86_64-2_slack14.2
> 
> Command:
> wget 
> https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
> 

I confirm, firefox (nightly) give "elementary-xfce-elementary-xfce-0.11.tar.gz
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Andrzej Telszewski

On 25/03/18 19:11, Matteo Bernardini wrote:

2018-03-25 18:46 GMT+02:00 Andrzej Telszewski :

Hi,

When I try to download:
https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz

the suggested tarball name is:

"elementary-xfce-elementary-xfce-0.11.tar.gz"

Can someone knowledgeable (I know we have some here ;-)) tell me if it's
possible to get the link in a way so that the tarball is actually:

"elementary-xfce-0.11.tar.gz"

?


I suppose you are using a browser to download it or wget with the
parameter "--content-disposition", but it's not your or github's
fault: if you look at the release page you can see that they seem to
have tagged it wrong, compare the releases below or equal to v0.9 to
the subsequent

https://github.com/shimmerproject/elementary-xfce/releases

with proper tagging, prepending the name of the tag should let you
specify a consistent (not depending on the download type) naming for
the tarball, for example

https://github.com/shimmerproject/elementary-xfce/archive/v0.9/elementary-xfce-0.9.tar.gz

but as tagging for the following releases is broken I don't have a
solution for you apart for adding an alternate extraction routine,
like

tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf
$CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz

Matteo


Yep, I noticed this too.
curl shows that indeed that is the case:
Content-Disposition: attachment; 
filename=elementary-xfce-elementary-xfce-0.11.tar.gz


Maybe I'll open issue ticket there.

--
Best regards / Pozdrawiam,
Andrzej Telszewski
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread Didier Spaier


Le 25/03/2018 à 19:11, Andrzej Telszewski a écrit :
> On 25/03/18 18:56, Didier Spaier wrote:
>> Hi,
>>
>> Le 25/03/2018 à 18:46, Andrzej Telszewski a écrit :
>>> Hi,
>>>
>>> When I try to download:
>>> https://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
>>>
>>> the suggested tarball name is:
>>>
>>> "elementary-xfce-elementary-xfce-0.11.tar.gz"
>>>
>>> Can someone knowledgeable (I know we have some here ;-)) tell me if it's 
>>> possible to get the link in a way so that the tarball is actually:
>>>
>>> "elementary-xfce-0.11.tar.gz"
>> No issue here, using wget-1.19.4-x86_64-2_slack14.2
>>
>> Command:
>> wgethttps://github.com/shimmerproject/elementary-xfce/archive/elementary-xfce-0.11.tar.gz
>>
>> didier[~]$ ls -ltr elem*
>> -rw-r--r-- 1 didier users 7945508 mars  25 18:51 elementary-xfce-0.11.tar.gz
> 
> OK then.
> wget works as expected, Firefox doesn't.
> Shit. Again.

Yes. I avoid to use Firefox for downloading files, especially compressed ones.
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread David Spencer via SlackBuilds-users
>> wget works as expected, Firefox doesn't.
>> Shit. Again.
>
> Yes. I avoid to use Firefox for downloading files, especially compressed ones.

Well, that's not my opinion.  IMO, what's broken is

(1) an http tool like wget that by default ignores what the http
protocol is telling it.

(2) github that doesn't document their download api.

(3) projects using stupid tags like 'elementary-xfce-0.11' or 'v0.1.2'
or 'Release_3.2.1' instead of just '1.2.3'

-D.
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] github doubling tarball name, again

2018-03-25 Thread B Watson
On 3/25/18, David Spencer via SlackBuilds-users
 wrote:

> (1) an http tool like wget that by default ignores what the http
> protocol is telling it.

wget didn't always support Content-Disposition. When support was added,
it was flagged as "experimental" and thus disabled by default. From the
man page:

   --content-disposition
   If this is set to on, experimental (not fully-functional) support for
   "Content-Disposition" headers is enabled. This can
currently result in
   extra round-trips to the server for a "HEAD" request, and is known to
   suffer from a few bugs, which is why it is not currently enabled by
   default.

I wouldn't call wget "broken" because of that. But, that's my opinion,
plenty of room for others...
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/