mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
build: use dpkg to purge sudo, for less spammy debug logs
apt is quite verbose: DEBUG: buildserver > DEBUG: > sudo SUDO_FORCE_REMOVE=yes apt-get -y purge sudo DEBUG: buildserver > Reading package lists... DEBUG: buildserver > Building dependency tree... DEBUG: buildserver > Reading state information... DEBUG: buildserver > The following package was automatically installed and is no longer required: DEBUG: buildserver > libasprintf0c2 DEBUG: buildserver > Use 'apt-get autoremove' to remove it. DEBUG: buildserver > The following packages will be REMOVED: DEBUG: buildserver > sudo* DEBUG: buildserver > 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. DEBUG: buildserver > After this operation, 2,391 kB disk space will be freed. DEBUG: buildserver > (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 73055 files and directories currently installed.) DEBUG: buildserver > Removing sudo (1.8.10p3-1+deb8u5) ... DEBUG: buildserver > Purging configuration files for sudo (1.8.10p3-1+deb8u5) ... DEBUG: buildserver > Processing triggers for man-db (2.7.0.2-5) ...
This commit is contained in:
parent
781e3c785f
commit
9087ec76f3
1 changed files with 1 additions and 1 deletions
|
|
@ -419,7 +419,7 @@ def build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, ext
|
||||||
raise BuildException("Error locking root account for %s:%s" %
|
raise BuildException("Error locking root account for %s:%s" %
|
||||||
(app.id, build.versionName), p.output)
|
(app.id, build.versionName), p.output)
|
||||||
|
|
||||||
p = FDroidPopen(['sudo', 'SUDO_FORCE_REMOVE=yes', 'apt-get', '-y', 'purge', 'sudo'])
|
p = FDroidPopen(['sudo', 'SUDO_FORCE_REMOVE=yes', 'dpkg', '--purge', 'sudo'])
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise BuildException("Error removing sudo for %s:%s" %
|
raise BuildException("Error removing sudo for %s:%s" %
|
||||||
(app.id, build.versionName), p.output)
|
(app.id, build.versionName), p.output)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue