在 2020/5/14 下午3:42, Peter Pentchev 写道: > > Hm, it seems to work for me for the gitless package. Also, the attached > patch works for me for the iptux package - I guess it may not be very > well documented that @ANY_VERSION@ is a regular expression group, so you > don't have to put it in () by itself, if that's what you tried.
Your attached patch is work for me to. The log file is attached. I used @ARCHIVE_EXT@ in the opts=filenamemangle line with @ANY_VERSION@ last time, /version=4// //opts=filenamemangle=s/.+\/v?@ANY_VERSION@@ARCHIVE_EXT@/@PACKAGE@-$1@ARCHIVE_EXT@/ \// // https://github.com/iptux-src/@PACKAGE@/tags .*/v?@ANY_VERSION@@ARCHIVE_EXT@/ so I get the mistake filename download. uscan: Newest version of iptux on remote site is 0.7.6, local version is 0.7.5 uscan: => Newer package available from https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz uscan info: Downloading upstream package: iptux-0.7.6(?i)(?:.(?:tar.xz|tar.bz2|tar.gz|zip|tgz|tbz|txz)) uscan info: Requesting URL: https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz uscan info: Successfully downloaded package: iptux-0.7.6(?i)(?:.(?:tar.xz|tar.bz2|tar.gz|zip|tgz|tbz|txz)) uscan info: Start checking for common possible upstream OpenPGP signature files uscan info: End checking for common possible upstream OpenPGP signature files uscan info: Missing OpenPGP signature. uscan info: New orig.tar.* tarball version (oversionmangled): 0.7.6 uscan info: Launch mk-origtargz with options: --package iptux --version 0.7.6 --compression default --directory .. --copyright-file debian/copyright ../iptux-0.7.6(?i)(?:.(?:tar.xz|tar.bz2|tar.gz|zip|tgz|tbz|txz)) uscan error: Parameter ../iptux-0.7.6(?i)(?:.(?:tar.xz|tar.bz2|tar.gz|zip|tgz|tbz|txz)) does not look like a tar archive or a zip file. > I should have mentioned that before, but feel free to let me know > directly for future uploads of the iptux package. I mean, obviously > I cannot test it (unless there is a way to test it from waaaay outside > China and Eastern Asia at all?), but I can make sure it builds and > then upload it :) I uploaed the new version iptux just before. Welcome to test and upload. Please see: https://mentors.debian.net/package/iptux Thanks for your patch and test! -- 肖盛文 Faris Xiao 微信:atzlinux QQ:909868357 铜豌豆 Linux 基于 Debian 的 Linux 中文桌面操作系统:https://www.atzlinux.com
uscan info: uscan (version 2.20.3~bpo10+1) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="iptux" version="0.7.5-2" (as seen in debian/changelog)
uscan info: package="iptux" version="0.7.5" (no epoch/revision)
uscan info: ./debian/changelog sets package="iptux" version="0.7.5"
uscan info: Process watch file at: debian/watch
package = iptux
version = 0.7.5
pkg_dir = .
uscan info: opts: filenamemangle=s/.+\/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))\.tar\.gz/iptux-$1\.tar\.gz/
uscan info: line: https://github.com/iptux-src/iptux/tags .*/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz))
uscan info: Parsing filenamemangle=s/.+\/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))\.tar\.gz/iptux-$1\.tar\.gz/
uscan info: line: https://github.com/iptux-src/iptux/tags .*/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.7.5
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.7.5
uscan info: Requesting URL:
https://github.com/iptux-src/iptux/tags
uscan info: Matching pattern:
(?:(?:https://github.com)?\/iptux\-src\/iptux\/tags)?.*/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz))
uscan info: Found the following matching hrefs on the web page (newest first):
/iptux-src/iptux/archive/v0.7.6.tar.gz (0.7.6) index=0.7.6-1
/iptux-src/iptux/archive/v0.7.6.zip (0.7.6) index=0.7.6-0
/iptux-src/iptux/archive/v0.7.5.tar.gz (0.7.5) index=0.7.5-1
/iptux-src/iptux/archive/v0.7.5.zip (0.7.5) index=0.7.5-0
/iptux-src/iptux/archive/v0.7.4.tar.gz (0.7.4) index=0.7.4-1
/iptux-src/iptux/archive/v0.7.4.zip (0.7.4) index=0.7.4-0
/iptux-src/iptux/archive/v0.7.3.tar.gz (0.7.3) index=0.7.3-1
/iptux-src/iptux/archive/v0.7.3.zip (0.7.3) index=0.7.3-0
/iptux-src/iptux/archive/v0.7.2.tar.gz (0.7.2) index=0.7.2-1
/iptux-src/iptux/archive/v0.7.2.zip (0.7.2) index=0.7.2-0
/iptux-src/iptux/archive/v0.7.1.tar.gz (0.7.1) index=0.7.1-1
/iptux-src/iptux/archive/v0.7.1.zip (0.7.1) index=0.7.1-0
/iptux-src/iptux/archive/v0.7.0.tar.gz (0.7.0) index=0.7.0-1
/iptux-src/iptux/archive/v0.7.0.zip (0.7.0) index=0.7.0-0
/iptux-src/iptux/archive/v0.6.4.tar.gz (0.6.4) index=0.6.4-1
/iptux-src/iptux/archive/v0.6.4.zip (0.6.4) index=0.6.4-0
/iptux-src/iptux/archive/v0.6.3.tar.gz (0.6.3) index=0.6.3-1
/iptux-src/iptux/archive/v0.6.3.zip (0.6.3) index=0.6.3-0
/iptux-src/iptux/archive/v0.6.2.tar.gz (0.6.2) index=0.6.2-1
/iptux-src/iptux/archive/v0.6.2.zip (0.6.2) index=0.6.2-0
uscan info: Looking at $base = https://github.com/iptux-src/iptux/tags with
$filepattern = .*/v?(?:[-_]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz)) found
$newfile = /iptux-src/iptux/archive/v0.7.6.tar.gz
$newversion = 0.7.6
$lastversion = 0.7.5
uscan info: Matching target for downloadurlmangle: https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz
uscan info: Upstream URL(+tag) to download is identified as https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz
uscan info: Matching target for filenamemangle: /iptux-src/iptux/archive/v0.7.6.tar.gz
uscan info: Filename (filenamemangled) for downloaded file: iptux-0.7.6.tar.gz
uscan: Newest version of iptux on remote site is 0.7.6, local version is 0.7.5
uscan: => Newer package available from
https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz
uscan info: Downloading upstream package: iptux-0.7.6.tar.gz
uscan info: Requesting URL:
https://github.com/iptux-src/iptux/archive/v0.7.6.tar.gz
uscan info: Successfully downloaded package: iptux-0.7.6.tar.gz
uscan info: Start checking for common possible upstream OpenPGP signature files
uscan info: End checking for common possible upstream OpenPGP signature files
uscan info: Missing OpenPGP signature.
uscan info: New orig.tar.* tarball version (oversionmangled): 0.7.6
uscan info: Launch mk-origtargz with options:
--package iptux --version 0.7.6 --compression default --directory .. --copyright-file debian/copyright ../iptux-0.7.6.tar.gz
Successfully symlinked ../iptux-0.7.6.tar.gz to ../iptux_0.7.6.orig.tar.gz.
uscan info: New orig.tar.* tarball version (after mk-origtargz): 0.7.6
uscan info: Scan finished
signature.asc
Description: OpenPGP digital signature

