Package: devscripts
Version: 2.10.52
Severity: wishlist
File: /usr/bin/uscan
Tags: patch
uscan searches for occurences of "href=" only behind "<a". The XML of
Subversion repositories is similar to HTML, just with "<file" or
"<dir" instead of "<a", e.g.:
<svn version="1.5.1 (r32289)"
href="http://subversion.tigris.org/">
<index rev="33" path="/tags" base="wikipedia2text">
<updir />
<dir name="0.10" href="0.10/" />
<dir name="0.11" href="0.11/" />
<dir name="0.2" href="0.2/" />
<dir name="0.3" href="0.3/" />
<dir name="0.4" href="0.4/" />
<dir name="0.5" href="0.5/" />
<dir name="0.6" href="0.6/" />
<dir name="0.7" href="0.7/" />
<dir name="0.8" href="0.8/" />
<dir name="0.9" href="0.9/" />
</index>
</svn>
or
<svn version="1.5.1 (r32289)"
href="http://subversion.tigris.org/">
<index rev="33" path="/tags/0.11" base="wikipedia2text">
<updir />
<file name="License" href="License" />
<file name="wikipedia2text" href="wikipedia2text" />
</index>
</svn>
With the attached patch, uscan can also parse version numbers out of
Subversion tags like e.g. on
https://svn.256bit.org/public-svn/wikipedia2text/tags/
The appropriate watch file would then be:
version=3
https://svn.256bit.org/public-svn/wikipedia2text/tags/ (\d[\d.]+)/
Here's the patch:
--- /usr/bin/uscan 2009-06-17 21:04:18.000000000 +0200
+++ ../../uscan 2009-07-26 15:48:42.000000000 +0200
@@ -890,7 +890,7 @@
print STDERR "$progname debug: matching pattern(s) @patterns\n" if
$debug;
my @hrefs;
- while ($content =~ m/<\s*a\s+[^>]*href\s*=\s*([\"\'])(.*?)\1/sgi) {
+ while ($content =~
m/<\s*(?:a|file|dir)\s+[^>]*href\s*=\s*([\"\'])(.*?)\1/sgi) {
my $href = $2;
$href =~ s/\n//g;
foreach my $_pattern (@patterns) {
-- Package-specific info:
--- /etc/devscripts.conf ---
--- ~/.devscripts ---
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-k95930EDE"
DSCVERIFY_KEYRINGS=$HOME/.gnupg/pubring.gpg
DEBUILD_LINTIAN_OPTS="-I -i"
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'stable'), (500, 'testing'), (400,
'oldstable'), (110, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages devscripts depends on:
ii dpkg-dev 1.15.3.1 Debian package development tools
ii libc6 2.9-21 GNU C Library: Shared libraries
ii perl 5.10.0-24 Larry Wall's Practical Extraction
Versions of packages devscripts recommends:
pn at <none> (no description available)
ii ch 2.0a19-5.1 Web browser for X
ii co 0.9~git090726-~nightlybuild1248559621 keyboard focused web browser with
ii cu 7.19.5-1 Get a file from an HTTP, HTTPS or
ii cv 1:1.12.13-12 Concurrent Versions System
ii dc 2.13.1 Command-line tools to process Debi
pn de <none> (no description available)
pn de <none> (no description available)
ii dp 0.9.4 Debian package upload tool
ii eq 2.0.7-0.1 Circumvent Debian package dependen
ii fa 1.12.4 Gives a fake root environment
ii gi 1:1.6.3.3-2 fast, scalable, distributed revisi
ii gn 1.4.9-4 GNU privacy guard - a free PGP rep
ii he 12.4-1.1 feature-rich BSD mail(1)
ii ic 3.5.1-1 lightweight web browser based on M
ii li 2.12-1 Authen::SASL - SASL Authentication
ii li 0.57-2 Support for https protocol in LWP
ii li 2.005-2 Easy OO parsing of Debian control-
pn li <none> (no description available)
ii li 0.2-4+b1 Perl extension for retrieving term
ii li 1.1600-9 Time and date functions for Perl
ii li 1.37+dfsg-1 Manipulates and accesses URI strin
ii li 5.829-1 WWW client/server library for Perl
ii li 1.07-1 fast, lightweight YAML loader and
ii li 2.2-1+b1 Web browser running in both graphi
ii li 2.2.13 Debian package checker
ii ls 3.2-23 Linux Standard Base version report
ii ly 2.8.7rel.1-1 Text-mode WWW Browser with NLS sup
ii ma 2.5.5-3 on-line manual pager
ii me 1.3.1-1 scalable distributed version contr
ii mi 0.1.7-1 fast, lightweight graphical web br
ii ne 1.15.7-2.1 text mode WWW browser with vi like
ii ne 1.2-1+b1 Small portable web browser with CS
ii op 1:5.1p1-6 secure shell client, an rlogin/rsh
ii op 10.00.4492.gcc4.qt3 The Opera Web Browser
ii pa 2.5.9-5 Apply a diff file to an original
ii pa 0.3.1-2 Utilities to work with patches
ii st 4.5.18-1 A system call tracer
ii su 1.6.3dfsg-1 Advanced version control system
ii un 6.0-1 De-archiver for .zip files
ii w3 0.5.2-2.1 WWW browsable pager with excellent
ii wd 0.5-18 Compares two files word by word
ii wg 1.11.4-4 retrieves files from the web
Versions of packages devscripts suggests:
ii build-essential 11.4 Informational list of build-essent
ii cvs-buildpackage 5.23 A set of Debian package scripts fo
ii devscripts-el 30.2-1 Emacs wrappers for the commands in
pn gnuplot <none> (no description available)
ii libfile-desktopentry-perl 0.04-2 Perl module to handle freedesktop
pn libnet-smtp-ssl-perl <none> (no description available)
ii mutt 1.5.20-2 text-based mailreader supporting M
ii svn-buildpackage 0.6.26 helper programs to maintain Debian
-- no debconf information
--
To unsubscribe, send mail to [email protected].