Your message dated Sun, 06 Apr 2014 18:03:26 +0000
with message-id <[email protected]>
and subject line Bug#441689: fixed in apt-listbugs 0.1.13
has caused the Debian Bug report #441689,
regarding apt-listbugs: New feature to automaticaly pin packages 
(implementation patch supplied)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
441689: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441689
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt-listbugs
Version: 0.0.82
Severity: wishlist
Tags: patch

The feature to automaticaly pin packages is required when one needs to
do a safe batch upgrade.

I use this feature when I do an upgrade using cron-apt. In this case
two successive 'apt-get upgrade' will upgrade all "safe" packages.
The first will pin the erroneous packages and the second will do the
upgrade.

In an interactive environment this can be done with an option, for
example --force-pin, but apt-get, as it is called by cron-apt, does not
pass options to apt-listbugs, so I had to introduce an apt.conf option
in order to be able to supply to apt-listbugs the required option.

I would be thankfull if you incorporated the supplied patch to the next
appropriate release.

George Famelis


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-listbugs depends on:
ii  apt                           0.7.6      Advanced front-end for dpkg
ii  libdpkg-ruby1.8               0.3.2      modules/classes for dpkg on ruby 1
ii  libhttp-access2-ruby1.8       2.0.6-3    HTTP accessing library for ruby
ii  libintl-gettext-ruby1.8       0.11-10    Gettext wrapper for Ruby 1.8
ii  libruby1.8 [libzlib-ruby1.8]  1.8.6.36-3 Libraries necessary to run Ruby 1.
ii  libxml-parser-ruby1.8         0.6.8-2    Interface of expat for the scripti
ii  ruby                          1.8.2-1    An interpreter of object-oriented 

apt-listbugs recommends no packages.

-- no debconf information
--- apt-listbugs-0.0.82/apt-listbugs    2007-09-10 22:21:13.000000000 +0300
+++ apt-listbugs-0.0.82/apt-listbugs.new        2007-09-10 22:31:24.000000000 
+0300
@@ -38,10 +38,6 @@
 be invoked before each upgrade by apt in order to check whether
 the upgrade/installation is safe. 
 
-== USAGE
-
-apt-listbugs [-h] [-s <severities>] [-S <stats>] [-D] [-H <hostname>] [-p 
<port>] [-R] <command> [arguments]
-
 == OPTIONS
 
 * -h | --help
@@ -94,6 +90,16 @@
 
   Specifies the apt configuration file to use.
 
+* -F <all|none> | --force-pin <all|none> 
+
+  When 'all' it is assumed that you select to pin all packages and exit when
+  any bug is found. When 'none' (actually any non-'all') it does not
+  automaticaly decide about pinning.
+  If not specified in the command line, apt.conf is consulted for the value
+  of LISTBUGS::Force-Pin. If not found then it defaults to 'none'
+  Command line 'none' is used when one needs to override an 'all' value
+  specified in apt.conf.
+
 * -y | --force-yes 
 
   Assumes that you select yes for all questions.
@@ -148,7 +154,10 @@
   HTTP Proxy setting, overrides the default HTTP Proxy setting. Useful
   for setting HTTP proxy for apt-listbugs.
 
+* LISTBUGS::Force-Pin
 
+  When set to 'all' it means that you select to pin any package found with a 
bug and exit.
+  This 'all' value can be overriden by a "--force-pin none" command line option
 
 == OUTPUT EXAMPLE
 
@@ -248,10 +257,12 @@
       sprintf($intl._(" -H <hostname>    : Hostname of Debian Bug Tracking 
System [%s].\n"), @hostname),
       sprintf($intl._(" -p <port>        : Port number of the server [%s]\n"), 
@port),
       sprintf($intl._(" --pin-priority   : Specifies Pin-Priority value 
[%s]\n"), @pin_priority),
-      $intl._(" --title          : Specifies the title of rss output.\n"),
+      $intl._(" --title <title>  : Specifies the title of rss output.\n"),
       $intl._(" -f               : Retrieve bug reports from BTS forcibly.\n"),
       $intl._(" -q               : Don't display progress bar.\n"),
       $intl._(" -C <apt.conf>    : Specify apt.conf.\n"),
+      $intl._(" --force-pin all  : Assume that you select to pin any package 
found with a bug and exit.\n"),
+      $intl._(" --force-pin none : Override 'all' config value for 
--force-pin.\n"),
       $intl._(" -y               : Assume that you select yes for all 
questions.\n"),
       $intl._(" -n               : Assume that you select no for all 
questions.\n"),
       $intl._(" -d               : Debug.\n"),
@@ -285,12 +296,13 @@
     @apt_conf = nil
 
     @yes = nil
+    @force_pin = nil
 
   end
 
   attr_accessor :severity, :stats, :quiet, :title
   attr_accessor :show_downgrade, :hostname, :tag
-  attr_accessor :frontend, :pin_priority, :yes
+  attr_accessor :frontend, :pin_priority, :yes, :force_pin
   attr_reader :command, :parser, :querybts, :ignore_bugs, :system_ignore_bugs, 
:browser
 
   def parse_options
@@ -307,6 +319,7 @@
                           ['--title', '-E', GetoptLong::REQUIRED_ARGUMENT],
                           ['--quiet', '-q', GetoptLong::NO_ARGUMENT],
                           ['--aptconf', '-C', GetoptLong::REQUIRED_ARGUMENT],
+                          ['--force-pin', '-F', GetoptLong::REQUIRED_ARGUMENT],
                           ['--force-yes', '-y', GetoptLong::NO_ARGUMENT],
                           ['--force-no', '-n', GetoptLong::NO_ARGUMENT],
                           ['--debug', '-d', GetoptLong::NO_ARGUMENT]
@@ -352,6 +365,13 @@
          @yes = true
        when '--force-no'
          @yes = false
+       when '--force-pin'
+          case optargs
+          when "all"
+           @force_pin = true
+          else
+           @force_pin = false
+          end
        end
       }
     rescue GetoptLong::AmbigousOption, GetoptLong::NeedlessArgument,
@@ -360,6 +380,15 @@
       exit 1
     end
 
+    if @force_pin.nil?
+      if /force_pin='(.*)'/ =~ `apt-config #{@apt_conf} shell force_pin 
LISTBUGS::Force-Pin` 
+        if $1 == 'all' 
+          @force_pin = true
+        end
+      end
+    end
+    @force_pin = false if @force_pin.nil?
+
     if ! $stdout.isatty
       @quiet = true
       @yes = false if @yes.nil?
@@ -510,22 +539,27 @@
       answer = "n"
       hold_pkgs = []
       while true
-       ask_str = $intl._("Are you sure you want to install/upgrade the above 
packages?")
-       if @config.querybts != nil || @config.browser != nil
-         if hold_pkgs.empty?
-           ask_str << " [Y/n/?/...] "
-         else
-           ask_str << "[N/?/...] "
-         end
-       else
-         ask_str << " [Y/n] "
-       end
-       if @config.yes.nil?
-          a = @config.frontend.ask ask_str
-        else
-          a = "y" if @config.yes
-          a = "n" if ! @config.yes
-        end
+       if @config.force_pin
+          @config.frontend.puts $intl._("Pinning all ackages at your request 
...")
+         a = "p"
+       elsif @config.yes.nil?
+         ask_str = $intl._("Are you sure you want to install/upgrade the above 
packages?")
+         if @config.querybts != nil || @config.browser != nil
+           if hold_pkgs.empty?
+             ask_str << " [Y/n/?/...] "
+           else
+             ask_str << "[N/?/...] "
+           end
+         else
+           ask_str << " [Y/n] "
+         end
+         a = @config.frontend.ask ask_str
+       elsif @config.yes
+         a = "y"
+       else
+         a = "n"
+       end
+
        if a == ""
          if hold_pkgs.empty?
            answer = "y"
@@ -605,7 +639,9 @@
             }
          end
          if pkgs.size != 0
-           if @config.frontend.yes_or_no? sprintf($intl._("The following %s 
packages will be pinned or on hold:\n %s\nAre you sure "), pkgs.size, 
pkgs.keys.join(', '))
+           if @config.force_pin
+              h = pinned(pkgs.keys, cur_pkgs, bugs)
+           elsif @config.frontend.yes_or_no? sprintf($intl._("The following %s 
packages will be pinned or on hold:\n %s\nAre you sure "), pkgs.size, 
pkgs.keys.join(', '))
              if key == "h"
                 h = on_hold(pkgs.keys)
               else
@@ -613,6 +649,9 @@
               end
             end
            hold_pkgs.concat(h) if h != nil
+           if @config.force_pin
+              return false;
+           end
          else
            @config.frontend.puts sprintf($intl._("Every packages already 
pinned or on hold. Ignoring %s command."), key)
          end

--- End Message ---
--- Begin Message ---
Source: apt-listbugs
Source-Version: 0.1.13

We believe that the bug you reported is fixed in the latest version of
apt-listbugs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Francesco Poli (wintermute) <[email protected]> (supplier of updated 
apt-listbugs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 02 Apr 2014 22:56:47 +0200
Source: apt-listbugs
Binary: apt-listbugs
Architecture: source all
Version: 0.1.13
Distribution: unstable
Urgency: medium
Maintainer: Francesco Poli (wintermute) <[email protected]>
Changed-By: Francesco Poli (wintermute) <[email protected]>
Description: 
 apt-listbugs - tool which lists critical bugs before each APT installation
Closes: 441689 493632 524768 562499 740564
Changes: 
 apt-listbugs (0.1.13) unstable; urgency=medium
 .
   * improved README.Debian formatting
   * documented how to temporarily disable the invocation of apt-listbugs
     in README.Debian
   * added some further considerations to the section about the "affects"
     field in README.Debian
   * fixed a bug in the handling of the user's answer to the question on
     how to proceed (continue or stop the installation, or pin packages,
     and so forth...): a "y" answer is now ignored, when some packages
     have just been pinned
   * improved the man page:
      - clarified what happens with the force options when in apt mode
      - enhanced the explanation of the exit status
      - improved style and clarity of the explanation for IgnoreRegexp
      - enhanced the explanation of APT_HOOK_INFO_FD
      - clarified the explanation of the severity filter option
   * updated gitweb URL in man page and in debian/copyright file
   * fixed another bug in the handling of the user's answer to the question on
     how to proceed: an answer containing the letter "h" or "p" is no longer
     misinterpreted as an "h" or "p" answer
   * refreshed the .pot file for internationalization
      - switched to rxgettext for the .pot file generation
   * enhanced reading of ignore_bugs files: each line is considered a comment,
     if its first nonwhitespace character is '#'; otherwise, the first word
     is considered a package name or bug number to be ignored.
   * downgraded the dependencies on ruby-xmlparser and ruby-httpclient to
     recommendations
   * fixed "auxiliary script send-hook-info.rb fails to work with Ruby 2.0":
     added an explicit file descriptor redirection to the exec call in order
     to adapt to Ruby 2.0 stricter behavior; thanks a lot to Christian
     Hofstaedtler for explaining what was wrong and for pointing me to the
     appropriate documentation! (Closes: #740564)
   * fixed "New feature to automatically pin packages (implementation patch
     supplied)": implemented the --force-pin option, thanks to Famelis George
     for the initial patch, updated by Serafeim Zanikolas (thanks!) and
     further modified by me (Closes: #441689)
   * fixed "make ParseStep configurable": created an APT configuration
     option (Closes: #562499)
   * fixed "should try and be more informative on "invalid date" SOAP
     parsing error" (Closes: #493632) and "Proposed Workaround for
     Apt-listbugs SOAP Failures" (Closes: #524768): on network errors,
     apt-listbugs now proposes to the user to retry one bug report at a
     time and begins showing the bug number currently being parsed.
Checksums-Sha1: 
 5807f845ae58493d588e6b3fe16dc247a6f90ea7 1751 apt-listbugs_0.1.13.dsc
 068c5f8329bf94775312a35f71f9210a22eb5093 98192 apt-listbugs_0.1.13.tar.xz
 e7cfafb793cbc6c6fff63a4f1bff1a13ab9e32d1 68044 apt-listbugs_0.1.13_all.deb
Checksums-Sha256: 
 adbcb08babf2040cb0c940c0779f535dc78000cf5675a34c779989dd6362b996 1751 
apt-listbugs_0.1.13.dsc
 45182d23b2f35825d3336962fad92850628675af09840f701d3ff24e7ab804a0 98192 
apt-listbugs_0.1.13.tar.xz
 e39828e77ec0ab9e031d18624122db1b76cca7e199b445b03f42245002d46f51 68044 
apt-listbugs_0.1.13_all.deb
Files: 
 67b4c3d057c3cdb478f18ed5b37d3c90 1751 admin optional apt-listbugs_0.1.13.dsc
 d4539c92122a28d288daef05b090d051 98192 admin optional 
apt-listbugs_0.1.13.tar.xz
 83b300b170772c2e17043d09e2327561 68044 admin optional 
apt-listbugs_0.1.13_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJTQZIjAAoJEE+fbVUO1hIqLdYP+wYhecFxDGOQpXo2xPkVhx2c
2QvwUR+AVhWmhy7hZhFLo0mFYQRSBqmVmZqkgMnHPETUxFPw9vIyxtJdTZ09H9lp
v3tTBMjTgIxIWE7Ah88K8fA0aGXnLyg68AirBdp0qL1cJLgbcz15Emi/cBUExyzX
usdzQeSi2C37jeDmfF2LZjyn6OSuC1N6CTyrAT4Mw49nYNNb3ZDN5ZiWzAiyMHRt
REh5QA70EPZY5cpll5Sya3oDgbW5g2xF6ZT3k6PPzbs25XxYsp8CIeEPyaAN4TQr
VJNGcjE0pPRtyrxRRiHzQ24+QCfI/0THNuFAeFj4BiDmx0xTHrvHHuKeCybQI5l0
GXQt7ad6SrT4EDq1ncXjn7W4e6jyoeURP/ZO4OypsB8mQks0ntNEfgpjgCTN0/9C
eAnIWKwMWfQTe+hKUGU7pN7dZZDqsjbU4A8L+PLebE09E9N0E3YmIXdTiYyr5Z4U
jg5l3mcS1LeVhgN5uX696lWsnB4xBJMgzi41tWwxN5TXc/PlPhaTa3RwJeYgHpB9
XDYo0Q5Ac+A1B43pWMkgAiT0UBDCyhdWAj1CbyMXoGxXfkCF7SAxJUxYK33Hqrhd
grzJ/WCuQiGu9T7Y+h4+mNigPv6aF5StM83hfcXVRKtSsscc7jgSeCCuebBZtVR4
THExktyGWTpSiwYe/lY0
=fSXt
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to