On 01/07/17 03:11, Willy Sudiarto Raharjo wrote:
network/youtube-dl: Updated for version 2017.06.25.

I'm facing the same download error as I mentioned previously regarding youtube-dl, i.e. the tarball is saved with underscore replaced with hyphen.

If it works for you, would you consider updating the SlackBuild as in the attached patch?

As a side note, when the tarball is saved:
- Firefox replaces the underscore _ with hyphen - ,
- wget keeps whatever it was invoked with,
- slackrepo behaves like Firefox.

Thanks!

(Bcc'd maintainer).

--
Best regards,
Andrzej Telszewski
diff --git a/network/youtube-dl/youtube-dl.SlackBuild b/network/youtube-dl/youtube-dl.SlackBuild
index 33bf5b3..bea2969 100644
--- a/network/youtube-dl/youtube-dl.SlackBuild
+++ b/network/youtube-dl/youtube-dl.SlackBuild
@@ -24,7 +24,6 @@
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=youtube-dl
-SRCNAM=$(echo $PRGNAM | tr - _)
 VERSION=${VERSION:-2017.06.25}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
@@ -62,7 +61,7 @@ rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
 rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
 cd $PRGNAM-$VERSION
 chown -R root:root .
 find -L . \
diff --git a/network/youtube-dl/youtube-dl.info b/network/youtube-dl/youtube-dl.info
index 7c7fde0..149c5a6 100644
--- a/network/youtube-dl/youtube-dl.info
+++ b/network/youtube-dl/youtube-dl.info
@@ -1,7 +1,7 @@
 PRGNAM="youtube-dl"
 VERSION="2017.06.25"
 HOMEPAGE="https://rg3.github.io/youtube-dl";
-DOWNLOAD="https://github.com/rg3/youtube-dl/archive/2017.06.25/youtube_dl-2017.06.25.tar.gz";
+DOWNLOAD="https://github.com/rg3/youtube-dl/archive/2017.06.25/youtube-dl-2017.06.25.tar.gz";
 MD5SUM="a552dba58c128dd9586b4cd1a3a98406"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to