Bug#820692: please document how to activate skip_if_keep_in_debug

2016-04-14 Thread Marc Haber
On Thu, Apr 14, 2016 at 02:09:38PM +0200, Stephan Sürken wrote:
> Maybe some explicit
> 
> http://mini-buildd.installiert.net/extra/mini-buildd/documentation/admin.html#logging-and-debugging
> 
> mentioning here is what you are after?

Yes, that would be perfect.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



Bug#820692: please document how to activate skip_if_keep_in_debug

2016-04-14 Thread Stephan Sürken
Hi Marc,

On Mo, 2016-04-11 at 15:18 +0200, Marc Haber wrote:
> Package: mini-buildd
> Version: 1.0.11
> Severity: wishlist
> 
> Hi,
> 
> changes.py says:
> 
(...)
> mini_buildd.misc.skip_if_keep_in_debug(os.remove, f_abs)
> 
> When debugging (which is unfortunately the case way too often), I'd
> like to take a look at a file called
> zg2-rebootscript_20110521a-1~zgSID+1+rebuilt20160411105624_mini-buildd-buildrequest_armhf.changes.tar
> which looks like it is deleted by the last line quoted. The code looks
> like there is a possibility to have the code not zap the file.
> 
> How do I activate that?

'mini-buildd --help' has documentation on this ('--debug=keep'); just
put this to /etc/default/mini-buildd (preferably by 'dpkg-reconfiguring'
mini-buildd).

Maybe some explicit

http://mini-buildd.installiert.net/extra/mini-buildd/documentation/admin.html#logging-and-debugging

mentioning here is what you are after?

Hth,

S



Bug#820692: please document how to activate skip_if_keep_in_debug

2016-04-11 Thread Marc Haber
Package: mini-buildd
Version: 1.0.11
Severity: wishlist

Hi,

changes.py says:

def move_to_pkglog(self, installed):
logdir = self.get_pkglog_dir(installed, relative=False)
if logdir and not os.path.exists(logdir):
os.makedirs(logdir)

LOG.info("Moving changes to package log: 
'{f}'->'{l}'".format(f=self._file_path, l=logdir))
for fd in [{"name": self._file_name}] + self.get_files():
f = fd["name"]
f_abs = os.path.join(os.path.dirname(self._file_path), f)
# If not installed, just move all files to log dir.
# If installed, only save buildlogs and changes.
if logdir and (not installed or 
re.match(r"(.*\.buildlog$|.*changes$)", f)):
LOG.info("Moving '{f}' to '{d}'". format(f=f, d=logdir))
os.rename(f_abs, os.path.join(logdir, f))
else:
LOG.info("Removing '{f}'". format(f=f))
mini_buildd.misc.skip_if_keep_in_debug(os.remove, f_abs)

When debugging (which is unfortunately the case way too often), I'd
like to take a look at a file called
zg2-rebootscript_20110521a-1~zgSID+1+rebuilt20160411105624_mini-buildd-buildrequest_armhf.changes.tar
which looks like it is deleted by the last line quoted. The code looks
like there is a possibility to have the code not zap the file.

How do I activate that?

Greetings
Marc

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-zgsrv20080 (SMP w/6 CPU cores; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mini-buildd depends on:
ii  adduser 3.114
ii  debconf [debconf-2.0]   1.5.59
ii  debootstrap 1.0.80
ii  devscripts  2.16.2
ii  dpkg-dev1.18.4
ii  gnupg   1.4.20-5
ii  libjs-jquery1.12.3-1
ii  libjs-sphinxdoc 1.3.6-2
ii  lintian 2.5.43
pn  mini-buildd-common  
ii  python-cherrypy33.5.0-2
ii  python-daemon   2.0.5-1
ii  python-django   1.9.5-1
ii  python-django-registration  2.0.4-1
ii  python-mini-buildd  1.0.11
ii  python-pyftpdlib1.4.0-1
pn  python:any  
ii  reprepro4.17.0-1
ii  sbuild  0.68.0-1
ii  schroot 1.6.10-2
ii  sudo1.8.15-1.1

Versions of packages mini-buildd recommends:
ii  python-apt  1.1.0~beta2

Versions of packages mini-buildd suggests:
pn  binfmt-support
ii  haveged   1.9.1-3
ii  lvm2  2.02.146-1
pn  qemu-user-static  

-- Configuration Files:
/etc/default/mini-buildd changed [not included]
/etc/sudoers.d/mini-buildd-sudoers [Errno 13] Permission denied: 
u'/etc/sudoers.d/mini-buildd-sudoers'

-- debconf information excluded