Re: ncbi-tools6: How to write a watch file with version encoded in _ftp_ directory
Eribertowrites: > There are three problems here. Thanks for taking a look! > 1. The current FTP address is > ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/, not > ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old. Hm? Either name is valid, and I'd say the variant with .nlm is preferred: $ dig @ns.nih.gov ftp.ncbi.nih.gov CNAME ftp.ncbi.nih.gov. 86400 IN CNAME ftp.ncbi.nlm.nih.gov. > 2. Now, this FTP site only accepts passive mode. That shouldn't be relevant if we're switching to http(s) anyway. > 3. The FTP scan via uscan seems accept files only (not directory > names). However, this site has http too. Good point. Better yet, it has https. -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu
Re: ncbi-tools6: How to write a watch file with version encoded in _ftp_ directory
Hi Eriberto, On Thu, Dec 01, 2016 at 11:01:56AM -0200, Eriberto wrote: > > Please, try the folowing structure: > > version=4 > opts="passive,uversionmangle=s|^|6.1.|" \ > http://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/ (\d{8}[a-z]*)/ > > I hope this help. Thanks, this was extremly helpful (after adding downloadurlmangle=s/$/ncbi.tar.gz/). One remaining question: I frequently observed that uscan gave up with something like in this case: ... uscan info: Requesting URL: http://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/20160908/ncbi.tar.gz uscan warn: In directory ., downloading http://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/20160908/ncbi.tar.gz failed: 500 read timeout uscan info: Failed to download upstream package: 20160908 ... The solution in this case is always to simply use the download URL with wget. Am I the only one who observes that uscan is way less robust in the actual download process than wget or is this simply a bug in uscan? Kind regards Andreas. -- http://fam-tille.de
Re: ncbi-tools6: How to write a watch file with version encoded in _ftp_ directory
Hi Andreas, 2016-12-01 9:15 GMT-02:00 Andreas Tille: > > I just noticed that there is a new upstream version of ncbi-tools6[1]. > The current d/watch file in Git[2] locks as: > > > version=3 > # Too bad uscan doesn't actually honor downloadurlmangle for FTP urls. :-/ > # [would use downloadurlmangle="s|$|/ncbi.tar.gz|] > opts="uversionmangle=s|^|6.1.|" \ > ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old/(\d{8}[a-z]*) There are three problems here. 1. The current FTP address is ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/, not ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old. 2. Now, this FTP site only accepts passive mode. 3. The FTP scan via uscan seems accept files only (not directory names). However, this site has http too. Please, try the folowing structure: version=4 opts="passive,uversionmangle=s|^|6.1.|" \ http://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/ (\d{8}[a-z]*)/ I hope this help. Cheers, Eriberto Useful UDDs: Help a package: https://people.debian.org/~eriberto/udd/help_a_package.html Uploaders ranking: https://people.debian.org/~eriberto/udd/uploaders_ranking.html Top 500 NEW packages: https://people.debian.org/~eriberto/udd/top_500_new.html
ncbi-tools6: How to write a watch file with version encoded in _ftp_ directory
Hi, I just noticed that there is a new upstream version of ncbi-tools6[1]. The current d/watch file in Git[2] locks as: version=3 # Too bad uscan doesn't actually honor downloadurlmangle for FTP urls. :-/ # [would use downloadurlmangle="s|$|/ncbi.tar.gz|] opts="uversionmangle=s|^|6.1.|" \ ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old/(\d{8}[a-z]*) I wonder whether watch version=4 might provide new means to automatically detect new versions. Kind regards Andreas. [1] ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/ [2] https://anonscm.debian.org/git/debian-med/ncbi-tools6.git -- http://fam-tille.de