On Sat, May 18, 2019 at 11:53:13AM -0400, Tong Sun wrote: > Hi, > > How to fix this? > > $ gbp import-orig --uscan --verbose > gbp:debug: ['git', 'rev-parse', '--show-cdup'] > gbp:debug: ['git', 'rev-parse', '--is-bare-repository'] > gbp:debug: ['git', 'rev-parse', '--git-dir'] > gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/'] > gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream'] > gbp:debug: ['git', 'status', '--porcelain'] > gbp:info: Launching uscan... > gbp:error: Uscan failed - debug by running 'uscan --verbose' > > It's within a dir that I get from > > gbp clone -v --pristine-tar g...@salsa.debian.org:debian/shc.git
<screenshot> stappers@paddy:~/src/mentor $ cd shc/ stappers@paddy:~/src/mentor/shc $ gbp import-orig --uscan --verbose gbp:debug: ['git', 'rev-parse', '--show-cdup'] gbp:debug: ['git', 'rev-parse', '--is-bare-repository'] gbp:debug: ['git', 'rev-parse', '--git-dir'] gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/'] gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream'] gbp:debug: ['git', 'status', '--porcelain'] gbp:info: Launching uscan... gbp:error: Uscan failed - debug by running 'uscan --verbose' stappers@paddy:~/src/mentor/shc $ uscan --verbose uscan info: uscan (version 2.19.2) See uscan(1) for help uscan info: Scan watch files in . uscan info: Check debian/watch and debian/changelog in . uscan info: package="shc" version="4.0.1+git20190127.699738e-1" (as seen in debian/changelog) uscan info: package="shc" version="4.0.1+git20190127.699738e" (no epoch/revision) uscan info: ./debian/changelog sets package="shc" version="4.0.1+git20190127.699738e" uscan info: Process watch file at: debian/watch package = shc version = 4.0.1+git20190127.699738e pkg_dir = . uscan info: opts: filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-neurobin-shc-\$1\.tar\.gz/,uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ uscan info: line: https://github.com/neurobin/shc/tags .*/v?(\d\S*)\.tar\.gz uscan info: Parsing filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-neurobin-shc-\$1\.tar\.gz/ uscan info: Parsing uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ uscan info: line: https://github.com/neurobin/shc/tags .*/v?(\d\S*)\.tar\.gz uscan info: Last orig.tar.* tarball version (from debian/changelog): 4.0.1+git20190127.699738e uscan info: Last orig.tar.* tarball version (dversionmangled): 4.0.1+git20190127.699738e uscan info: Requesting URL: https://github.com/neurobin/shc/tags uscan info: Matching pattern: (?:(?:https://github.com)?\/neurobin\/shc\/tags)?.*/v?(\d\S*)\.tar\.gz uscan info: Found the following matching hrefs on the web page (newest first): /neurobin/shc/archive/4.0.1.tar.gz (4.0.1) index=4.0.1-1 /neurobin/shc/archive/4.0.0.tar.gz (4.0.0) index=4.0.0-1 /neurobin/shc/archive/3.9.8.tar.gz (3.9.8) index=3.9.8-1 /neurobin/shc/archive/3.9.7.tar.gz (3.9.7) index=3.9.7-1 /neurobin/shc/archive/3.9.6.tar.gz (3.9.6) index=3.9.6-1 /neurobin/shc/archive/3.9.5.tar.gz (3.9.5) index=3.9.5-1 /neurobin/shc/archive/3.9.4.tar.gz (3.9.4) index=3.9.4-1 /neurobin/shc/archive/3.9.3a4.tar.gz (3.9.3a4) index=3.9.3a4-1 /neurobin/shc/archive/3.9.3.tar.gz (3.9.3) index=3.9.3-1 uscan info: Looking at $base = https://github.com/neurobin/shc/tags with $filepattern = .*/v?(\d\S*)\.tar\.gz found $newfile = /neurobin/shc/archive/4.0.1.tar.gz $newversion = 4.0.1 which is newer than $lastversion = 4.0.1+git20190127.699738e uscan info: Matching target for downloadurlmangle: https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Upstream URL(+tag) to download is identified as https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Matching target for filenamemangle: /neurobin/shc/archive/4.0.1.tar.gz uscan info: Filename (filenamemangled) for downloaded file: golang-github-neurobin-shc-4.0.1.tar.gz uscan info: Newest version of shc on remote site is 4.0.1, local version is 4.0.1+git20190127.699738e uscan info: => Only older package available from https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Scan finished stappers@paddy:~/src/mentor/shc $ </screenshot> In other words: uscan tries to express there is NO new upstream version Yes, it is awkward. <screenshot new="echo $?"> uscan info: Looking at $base = https://github.com/neurobin/shc/tags with $filepattern = .*/v?(\d\S*)\.tar\.gz found $newfile = /neurobin/shc/archive/4.0.1.tar.gz $newversion = 4.0.1 which is newer than $lastversion = 4.0.1+git20190127.699738e uscan info: Matching target for downloadurlmangle: https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Upstream URL(+tag) to download is identified as https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Matching target for filenamemangle: /neurobin/shc/archive/4.0.1.tar.gz uscan info: Filename (filenamemangled) for downloaded file: golang-github-neurobin-shc-4.0.1.tar.gz uscan info: Newest version of shc on remote site is 4.0.1, local version is 4.0.1+git20190127.699738e uscan info: => Only older package available from https://github.com/neurobin/shc/archive/4.0.1.tar.gz uscan info: Scan finished stappers@paddy:~/src/mentor/shc $ echo $? 1 stappers@paddy:~/src/mentor/shc $ </screenshot> Why `uscan` returns a non-zero value for "no new version" is unclear to me. Groeten Geert Stappers -- Leven en laten leven