Can't save Filters with includes; changes to excludes

Asked by Ranieri Batista

I just installed Synaptic in 12.04. I want to create a filter rule to include packages that are dependencies of ubuntu-desktop or ubuntu-minmal, etc. I go to the third tab and add "dependent packages includes ubuntu-desktop". I click OK to close it, then I come back and the rule says "dependent packages excludes ubuntu-desktop" and I can't save it as includes.

Where are the config files for synaptic filters so I can set them manually?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ranieri Batista (ranieribatista) said :
#1

The following is a section from my /root/.synaptic/filters, packages depending on DebConf.
I think the patterns are working in reverse.

      Depends; "^debconf"; true; # displays almost all packages, it was like this when I opened it for editing
      Depends; "^debconf"; false; # displays only packages depending on Debconf after I made this change

filter "Pacote com Debconf" {
  section {
    inclusive false;
    sections {
    };
  };
  status {
    flags 0x1ffff;
  };
  pattern {
    andMode 57;
    patterns {
      Depends; "^debconf"; false;
    };
  };
  priority {
  };
  reducedview {
    enabled false;
  };
};

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Ranieri Batista (ranieribatista) said :
#3

More info: this bug is caused by Brazilian Portuguese localisation. When I first ran synaptic from my user account, the filters file wasn't created. Custom filters work as expected.

I open the filters window, don't do anything, hit OK, the file is created with English filter names. The filters are still working. These lines are on the brand new filters file:
    Depends; "^debconf"; false;
     Component; "main"; true;
     Component; "restricted"; true;
     Origin; "Ubuntu"; false;

I open it again, go to 'Propriedades', see the properties for all filters, not changing anything, hit OK. The file has changed. Filter titles are in Portuguese and the lines above changed to this:
    Depends; "^debconf"; true;
      Component; "main"; true;
      Component; "restricted"; true;
      Origin; "Ubuntu"; true;

I manually edit filters file, change them back, reopen synaptic, look at the properties section, they all show Exclui (excludes). As long as I hit Cancel and not OK, the file is not changed. But the window sometimes show the correct filtered packages, sometimes not.
Restarting synaptic the list of packages will be correct.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.