On 25/03/18 19:11, Matteo Bernardini wrote:
2018-03-25 18:46 GMT+02:00 Andrzej Telszewski <[email protected]>:
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
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to