On Tue, Mar 03, 2009 at 03:09:52AM +0100, Marco d'Itri wrote:
> On Mar 03, Steve Langasek <vor...@debian.org> wrote:
> 
> > On Tue, Mar 03, 2009 at 01:43:53AM +0100, Marco d'Itri wrote:
> > > The upstream maintainers decided that in the future the files in
> > > /etc/modprobe.d/ will be processed only if they have a .conf suffix.
> > What is the point of this change, except to force an annoying transition on
> > people?
> Being sure to ignore backups, packaging systems files, etc.
> It's not that I like this much, but I'd rather not carry forever a patch
> to restore the old behaviour.

run-parts uses a set of simple regular expressions to ignore both backup 
files and dpkg conffile leftovers.  This is the relevent code from the 
schroot run-parts class:

  bool match = false;

  static regex lanana_namespace("^[a-z0-9]+$");
  static regex lsb_namespace("^_?([a-z0-9_.]+-)+[a-z0-9]+$");
  static regex debian_cron_namespace("^[a-z0-9][a-z0-9-]*$");
  static regex debian_dpkg_conffile_cruft("dpkg-(old|dist|new|tmp)$");

  if ((regex_search(name, lanana_namespace) ||
       regex_search(name, lsb_namespace) ||
       regex_search(name, debian_cron_namespace)) &&
      !regex_search(name, debian_dpkg_conffile_cruft))
    match = true;

You could easily adapt these expressions and logic (if needed,
they are very general) for use by modprobe.


Regards,
Roger


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

Reply via email to