Bug#696492: devscripts: [uscan] fails unnecessarily when directory pattern matches a non-directory

Ximin Luo infinity0 at gmx.com
Fri Dec 21 15:11:46 UTC 2012


Package: devscripts
Version: 2.12.6
Severity: normal

As can be seen below, (.+) matches non-directories (such as HEADER.html), then when uscan tries to descend into them, it fails the entire run rather than trying the next maybe-directory that was matched.

$ cat ubuntu-desktop-amd64.watch 
version=3
ftp://ftp.mirrorservice.org/sites/releases.ubuntu.com/(.+)/ubuntu-(.+)-desktop-amd64.iso.torrent \
  debian ./uscan

$ uscan --debug --upstream-version 12.10 --package ubuntu-desktop-amd64 --watchfile ubuntu-desktop-amd64.watch --download --pasv --destdir ../bin
-- In ubuntu-desktop-amd64.watch, processing watchfile line:
   ftp://ftp.mirrorservice.org/sites/releases.ubuntu.com/(.+)/ubuntu-(.+)-desktop-amd64.iso.torrent   debian ./uscan
uscan debug: dir=>/sites/releases.ubuntu.com/  dirpattern=>(.+)
uscan debug: requesting URL ftp://ftp.mirrorservice.org/sites/releases.ubuntu.com/
uscan debug: received content:
lrwxrwxrwx    1 ftp      ftp             5 Mar 19  2010 10.04 -> lucid
lrwxrwxrwx    1 ftp      ftp             5 Feb 16  2012 10.04.4 -> lucid
lrwxrwxrwx    1 ftp      ftp             7 Sep 01  2011 11.10 -> oneiric
lrwxrwxrwx    1 ftp      ftp             7 Mar 01  2012 12.04 -> precise
lrwxrwxrwx    1 ftp      ftp             7 Aug 23 22:47 12.04.1 -> precise
lrwxrwxrwx    1 ftp      ftp             7 Sep 06 17:39 12.10 -> quantal
lrwxrwxrwx    1 ftp      ftp             5 Mar 20  2008 8.04 -> hardy
lrwxrwxrwx    1 ftp      ftp             5 Jan 28  2010 8.04.4 -> hardy
-rw-rw-r--    1 ftp      ftp            22 Feb 01  2006 FOOTER.html
-rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html
drwxrwxr-x    2 ftp      ftp          4096 Sep 21 11:18 cdicons
drwxrwxr-x    4 ftp      ftp          4096 Sep 27 18:27 edubuntu
-rw-rw-r--    1 ftp      ftp          1150 Jun 16  2011 favicon.ico
drwxrwxr-x    2 ftp      ftp          4096 Mar 30  2011 hardy
drwxrwxr-x    3 ftp      ftp          4096 Jan 24  2011 include
drwxrwxr-x    2 ftp      ftp          4096 Nov 02 12:01 jigit
drwxrwxr-x    6 ftp      ftp          4096 Nov 02 11:59 kubuntu
drwxrwxr-x    2 ftp      ftp          4096 Feb 19  2012 lucid
drwxrwxr-x    2 ftp      ftp          4096 Oct 13  2011 oneiric
drwxrwxr-x    2 ftp      ftp          4096 Oct 16 17:12 precise
drwxrwxr-x    2 ftp      ftp          4096 Oct 18 15:10 quantal
lrwxrwxrwx    1 ftp      ftp             1 Jul 31  2007 releases -> .
-rw-rw-r--    1 ftp      ftp            49 Oct 29  2009 robots.txt
[End of received content]
uscan debug: matching pattern (.+)
-- Found the following matching dirs:
     lrwxrwxrwx    1 ftp      ftp             5 Mar 19  2010 10.04 -> lucid
     lrwxrwxrwx    1 ftp      ftp             5 Feb 16  2012 10.04.4 -> lucid
     lrwxrwxrwx    1 ftp      ftp             7 Sep 01  2011 11.10 -> oneiric
     lrwxrwxrwx    1 ftp      ftp             7 Mar 01  2012 12.04 -> precise
     lrwxrwxrwx    1 ftp      ftp             7 Aug 23 22:47 12.04.1 -> precise
     lrwxrwxrwx    1 ftp      ftp             7 Sep 06 17:39 12.10 -> quantal
     lrwxrwxrwx    1 ftp      ftp             5 Mar 20  2008 8.04 -> hardy
     lrwxrwxrwx    1 ftp      ftp             5 Jan 28  2010 8.04.4 -> hardy
     -rw-rw-r--    1 ftp      ftp            22 Feb 01  2006 FOOTER.html
     -rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html
     drwxrwxr-x    2 ftp      ftp          4096 Sep 21 11:18 cdicons
     drwxrwxr-x    4 ftp      ftp          4096 Sep 27 18:27 edubuntu
     -rw-rw-r--    1 ftp      ftp          1150 Jun 16  2011 favicon.ico
     drwxrwxr-x    2 ftp      ftp          4096 Mar 30  2011 hardy
     drwxrwxr-x    3 ftp      ftp          4096 Jan 24  2011 include
     drwxrwxr-x    2 ftp      ftp          4096 Nov 02 12:01 jigit
     drwxrwxr-x    6 ftp      ftp          4096 Nov 02 11:59 kubuntu
     drwxrwxr-x    2 ftp      ftp          4096 Feb 19  2012 lucid
     drwxrwxr-x    2 ftp      ftp          4096 Oct 13  2011 oneiric
     drwxrwxr-x    2 ftp      ftp          4096 Oct 16 17:12 precise
     drwxrwxr-x    2 ftp      ftp          4096 Oct 18 15:10 quantal
     lrwxrwxrwx    1 ftp      ftp             1 Jul 31  2007 releases -> .
     -rw-rw-r--    1 ftp      ftp            49 Oct 29  2009 robots.txt
uscan debug: newest_dir => '-rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html'
uscan debug: requesting URL ftp://ftp.mirrorservice.org/sites/releases.ubuntu.com/-rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html/
uscan warning: In watchfile ubuntu-desktop-amd64.watch, reading FTP directory
  ftp://ftp.mirrorservice.org/sites/releases.ubuntu.com/-rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html/ failed: 404 File '-rw-rw-r--    1 ftp      ftp          1902 Nov 02 11:59 HEADER.html' not found
1

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev  1.16.9
ii  libc6     2.13-37
ii  perl      5.14.2-16
ii  python    2.7.3-3

Versions of packages devscripts recommends:
ii  at                        3.1.13-2
ii  curl                      7.28.0-3
ii  dctrl-tools               2.22.2
ii  debian-keyring            2012.11.15
ii  dput                      0.9.6.3+nmu1
ii  equivs                    2.0.9
ii  fakeroot                  1.18.4-2
ii  gnupg                     1.4.12-6
ii  libcrypt-ssleay-perl      0.58-1
ii  libdistro-info-perl       0.10
ii  libjson-perl              2.53-1
ii  libparse-debcontrol-perl  2.005-3
ii  libsoap-lite-perl         0.714-1
ii  liburi-perl               1.60-1
ii  libwww-perl               6.04-1
ii  lintian                   2.5.10.3
ii  man-db                    2.6.3-3
ii  patch                     2.6.1-3
ii  patchutils                0.3.2-1.1
ii  python-debian             0.1.21+nmu2
ii  python-magic              5.11-2
ii  sensible-utils            0.0.7
ii  strace                    4.5.20-2.3
ii  unzip                     6.0-8
ii  wdiff                     1.1.2-1
ii  wget                      1.14-1
ii  xz-utils                  5.1.1alpha+20120614-2

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20111106cvs-1
ii  build-essential              11.5
pn  cvs-buildpackage             <none>
pn  devscripts-el                <none>
ii  gnuplot                      4.6.0-8
ii  heirloom-mailx [mailx]       12.5-2
ii  libauthen-sasl-perl          2.1500-1
ii  libfile-desktopentry-perl    0.04-3
ii  libnet-smtp-ssl-perl         1.01-3
pn  libterm-size-perl            <none>
ii  libtimedate-perl             1.2000-1
ii  libyaml-syck-perl            1.22-1
ii  mutt                         1.5.21-6.2
ii  openssh-client [ssh-client]  1:6.0p1-3
pn  svn-buildpackage             <none>
ii  w3m                          0.5.3-8

-- no debconf information



More information about the devscripts-devel mailing list