mvo5 / synaptic

The synaptic package manager
GNU General Public License v2.0
161 stars 55 forks source link

configuration from cmdline doesn't override the configuration in the file #117

Open imz opened 1 year ago

imz commented 1 year ago

0.84.6ubuntu5

That's how I discovered the problem.

First, run synaptic with a custom option in the command line:

# sed -ne '/description/I p' ~/.synaptic/synaptic.conf
# synaptic -o Synaptic::descriptionParser=2 # stripws parser
# sed -ne '/description/I p' ~/.synaptic/synaptic.conf 
  descriptionParser "2";
# 

Well, the option has been saved in the file, which might be unexpected, but at least explainable under a certain logic.

So, if we run synaptic again without such option, we see the "stripws" formatting of descriptions.

Now, the problem is that even specifying the option with another value now does not affect synaptic:

# synaptic -o Synaptic::descriptionParser=1 # deb parser

and we see still the "stripws" formatting.

(Ultimately, clean up from the experiment:

~# sed -ne '/description/I p' ~/.synaptic/synaptic.conf 
  descriptionParser "2";
# sed -i -e '/description/I d' ~/.synaptic/synaptic.conf