misc/122594: [maintainer update][patch]Update port: www/youtube_dl to 2008.04.07

Pankov Pavel pankov_p at mail.ru
Wed Apr 9 11:50:02 UTC 2008


>Number:         122594
>Category:       misc
>Synopsis:       [maintainer update][patch]Update port: www/youtube_dl to 2008.04.07
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 09 11:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pankov Pavel
>Release:        6.3-STABLE
>Organization:
MPEI
>Environment:
FreeBSD vds.pankov.pp.ru 6.3-STABLE FreeBSD 6.3-STABLE #4: Tue Mar 18 05:50:02 CET 2008     root at dione.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM_PAED  i386
>Description:
- Update www/youtube_dl to 2008.04.07
>How-To-Repeat:

>Fix:
Apply attached patch.

Patch attached with submission follows:

Index: www/youtube_dl/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- www/youtube_dl/Makefile	13 Mar 2008 20:57:18 -0000	1.19
+++ www/youtube_dl/Makefile	9 Apr 2008 11:44:50 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2008.03.08
+PORTVERSION=	2008.04.07
 CATEGORIES=	www
 MASTER_SITES=	http://www.arrakis.es/~rggi3/youtube-dl/
 DISTNAME=	youtube-dl-${PORTVERSION}
Index: www/youtube_dl/distinfo
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/distinfo,v
retrieving revision 1.16
diff -u -r1.16 distinfo
--- www/youtube_dl/distinfo	13 Mar 2008 20:57:18 -0000	1.16
+++ www/youtube_dl/distinfo	9 Apr 2008 11:44:50 -0000
@@ -1,3 +1,3 @@
-MD5 (youtube-dl-2008.03.08) = 026eee27b6186b3729f842e2cc10cd0e
-SHA256 (youtube-dl-2008.03.08) = 30b491cece2bae9525e95f26dcb7d238eb0487fa689696faf166b590fd50b707
-SIZE (youtube-dl-2008.03.08) = 15306
+MD5 (youtube-dl-2008.04.07) = 38633443d0d39db1c658f834e0a38401
+SHA256 (youtube-dl-2008.04.07) = 0b207a94081eaf38ed365a47476e172b331a3530d875463870bad87fd7c46f9a
+SIZE (youtube-dl-2008.04.07) = 16309
Index: www/youtube_dl/files/conv2avi.patch
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/files/conv2avi.patch,v
retrieving revision 1.4
diff -u -r1.4 conv2avi.patch
--- www/youtube_dl/files/conv2avi.patch	13 Mar 2008 20:57:18 -0000	1.4
+++ www/youtube_dl/files/conv2avi.patch	9 Apr 2008 11:44:50 -0000
@@ -1,44 +1,37 @@
-Index: www/youtube_dl/files/conv2avi.patch
-===================================================================
-RCS file: www/youtube_dl/files/conv2avi.patch
-diff -N www/youtube_dl/files/conv2avi.patch
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ www/youtube_dl/files/conv2avi.patch	31 Jan 2008 19:32:45 -0000
-@@ -0,0 +1,37 @@
-+--- youtube-dl.orig	Wed Jan 30 14:18:50 2008
-++++ youtube-dl	Thu Jan 31 21:36:49 2008
-+@@ -208,6 +208,7 @@
-+ cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name')
-+ cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name')
-+ cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data')
-++cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='output file in avi format')
-+ cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only')
-+ cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too')
-+ (cmdl_opts, cmdl_args) = cmdl_parser.parse_args()
-+@@ -382,6 +383,26 @@
-+ 
-+ except KeyboardInterrupt:
-+ 	sys.exit('\n')
-++
-++# Convert to avi if needed
-++if cmdl_opts.use_avi:
-++	if cmdl_opts.outfile is None:
-++		avi_filename = '%s.avi' % video_filename[:-4]
-++	else:
-++		avi_filename = '%s.avi' % video_filename
-++
-++	try:
-++		os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (video_filename, avi_filename, os.path.devnull, os.path.devnull))
-++		cond_print('Video file converted to %s\n' % avi_filename)
-++	except OSError:
-++		sys.exit('Error: unable to convert file.\n')
-++	except KeyboardInterrupt:
-++		sys.exit('\n')
-++
-++	try:
-++		os.unlink(video_filename)
-++	except OSError:
-++		sys.exit('Error: unable to remove downloaded file.\n')
-+ 
-+ # Finish
-+ sys.exit()
+--- youtube-dl.orig	Wed Jan 30 14:18:50 2008
++++ youtube-dl	Thu Jan 31 21:36:49 2008
+@@ -208,6 +208,7 @@
+ cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name')
+ cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name')
+ cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data')
++cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='convert file to MPEG4 format')
+ cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only')
+ cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too')
+ (cmdl_opts, cmdl_args) = cmdl_parser.parse_args()
+@@ -382,6 +383,26 @@
+ 
+ except KeyboardInterrupt:
+ 	sys.exit('\n')
++
++# Convert to avi if needed
++if cmdl_opts.use_avi and not cmdl_opts.best_quality:
++	if cmdl_opts.outfile is None:
++		avi_filename = '%s.avi' % video_filename[:-4]
++	else:
++		avi_filename = '%s.avi' % video_filename
++
++	try:
++		os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (video_filename, avi_filename, os.path.devnull, os.path.devnull))
++		cond_print('Video file converted to %s\n' % avi_filename)
++	except OSError:
++		sys.exit('Error: unable to convert file.\n')
++	except KeyboardInterrupt:
++		sys.exit('\n')
++
++	try:
++		os.unlink(video_filename)
++	except OSError:
++		sys.exit('Error: unable to remove downloaded file.\n')
+ 
+ # Finish
+ sys.exit()


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list