Bug#681779:

2022-06-13 Thread Akbarkhon Variskhanov
Tag: patch

This should fix it. Needs testing.
--- getbuildlog.sh	2022-06-13 22:42:31.607100283 +0500
+++ getbuildlog.sh-681779	2022-06-13 22:36:46.879528040 +0500
@@ -93,7 +93,9 @@
 
 trap 'rm -f "$ALL_LOGS"' EXIT
 
-wget -q -O $ALL_LOGS "$BASE/status/logs.php?pkg=$PACKAGE"
+wget -q -O - "$BASE/status/logs.php?pkg=$PACKAGE" \
+| tee $ALL_LOGS \
+| { grep -q "No build logs found for $PACKAGE () in the database" && exit 1; }
 
 # Put each href in $ALL_LOGS on a separate line so that $PATTERN
 # matches only one href. This is required because grep is greedy.


Bug#681779: devscripts: [getbuildlog] please exit with non-zero if a log can't be found

2012-07-16 Thread Cyril Brulebois
Package: devscripts
Version: 2.12.1
Severity: normal

Hello,

trying to automate log retrieval through getbuildlog is a bit tricky
since it exits with 0 all the time, even if a log can't be found.

Example:
  getbuildlog foo bar baz; echo $?
  0

It would be helpful if it would exit with non-0 if a log can't be
found/retrieved.

Mraw,
KiBi.

-- Package-specific info:

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

--- ~/.devscripts ---
DEBCHANGE_RELEASE_HEURISTIC=changelog
DEBCHANGE_AUTO_NMU=no
DEBCHANGE_FORCE_SAVE_ON_RELEASE=no
DEBDIFF_AUTO_VER_SORT=yes
DEBUILD_DPKG_BUILDPACKAGE_OPTS='-uc -us'
DEBUILD_PRESERVE_ENVVARS=PATH
NMUDIFF_DELAY=2

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

Kernel: Linux 3.2.0-3-amd64 (SMP w/6 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.7
ii  libc6 2.13-34
ii  perl  5.14.2-12
ii  python2.7.3-1

Versions of packages devscripts recommends:
ii  at3.1.13-2
ii  curl  7.26.0-1
ii  dctrl-tools   2.22.2
ii  debian-keyring2012.06.01
ii  dput  0.9.6.3
ii  equivs2.0.9
ii  fakeroot  1.18.4-2
ii  gnupg 1.4.12-4+b1
ii  libcrypt-ssleay-perl  0.58-1
ii  libdistro-info-perl   0.10
ii  libjson-perl  2.53-1
pn  libparse-debcontrol-perl  none
ii  libsoap-lite-perl 0.714-1
ii  liburi-perl   1.60-1
ii  libwww-perl   6.04-1
ii  lintian   2.5.10
ii  man-db2.6.2-1
ii  patch 2.6.1-3
ii  patchutils0.3.2-1.1
ii  python-debian 0.1.21
ii  python-magic  5.11-2
ii  sensible-utils0.0.7
ii  strace4.5.20-2.3
ii  unzip 6.0-7
ii  wdiff 1.1.2-1
ii  wget  1.13.4-3
ii  xz-utils  5.1.1alpha+20120614-1

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]8.1.2-0.2006cvs-1
ii  build-essential  11.5
pn  cvs-buildpackage none
ii  devscripts-el35.2
ii  gnuplot  4.6.0-8
ii  libauthen-sasl-perl  2.1500-1
ii  libfile-desktopentry-perl0.04-3
ii  libnet-smtp-ssl-perl 1.01-3
pn  libterm-size-perlnone
ii  libtimedate-perl 1.2000-1
ii  libyaml-syck-perl1.20-1
ii  mutt 1.5.21-6
ii  openssh-client [ssh-client]  1:6.0p1-2
pn  svn-buildpackage none
ii  w3m  0.5.3-8

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org