[Bug 1053776] [NEW] ubuntu patch uses unsupported search pattern, redundant

Daniel Hartwig 1053776 at bugs.launchpad.net
Fri Sep 21 03:10:56 UTC 2012


Public bug reported:

Ubuntu changes to aptitude include the file 05aptitude containing this
configuration item:

aptitude::Keep-Unused-Pattern "^linux-image.*$ | ^linux-restricted-
modules.*$ | ^linux-ubuntu-modules.*$";

First, the search terms used are implicit and this is unsupported for
non-interactive use.  From the aptitude user's manual section titled
“Search patterns”:

Warning
The behavior of aptitude when given a search pattern without a leading “?” (or “~”) is provided as a convenience for interactive use and will change in future releases; scripts that invoke aptitude should explicitly name the search strategy they want to use. That is, scripts should search for “?name(coq)” rather than “coq”).

Second, these terms already appear in the default value of
APT::NeverAutoRemove from 01autoremove (package apt).  The aptitude
setting is used in a check which already considers the APT setting,
making the aptitude configuration redundant.

The setting should be removed from 05aptitude.

** Affects: aptitude (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/1053776

Title:
  ubuntu patch uses unsupported search pattern, redundant

Status in “aptitude” package in Ubuntu:
  New

Bug description:
  Ubuntu changes to aptitude include the file 05aptitude containing this
  configuration item:

  aptitude::Keep-Unused-Pattern "^linux-image.*$ | ^linux-restricted-
  modules.*$ | ^linux-ubuntu-modules.*$";

  First, the search terms used are implicit and this is unsupported for
  non-interactive use.  From the aptitude user's manual section titled
  “Search patterns”:

  Warning
  The behavior of aptitude when given a search pattern without a leading “?” (or “~”) is provided as a convenience for interactive use and will change in future releases; scripts that invoke aptitude should explicitly name the search strategy they want to use. That is, scripts should search for “?name(coq)” rather than “coq”).

  Second, these terms already appear in the default value of
  APT::NeverAutoRemove from 01autoremove (package apt).  The aptitude
  setting is used in a check which already considers the APT setting,
  making the aptitude configuration redundant.

  The setting should be removed from 05aptitude.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1053776/+subscriptions




More information about the foundations-bugs mailing list