Bug 22225 - filterpineconf could help with different orders of statements (sort ?)
: filterpineconf could help with different orders of statements (sort ?)
Status: NEW
: Sisyphus
(All bugs in Sisyphus/pine)
: unstable
: all Linux
: P3 enhancement
Assigned To:
:
:
:
:
: 22226
  Show dependency tree
 
Reported: 2009-11-09 18:32 by
Modified: 2009-11-09 18:41 (History)


Attachments
diff -du ~/tmp/pine-conf-filtered/installed ~/tmp/pine-conf-filtered/current (3.19 KB, patch)
2009-11-09 18:32, Ivan Zakharyaschev
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-11-09 18:32:36
Created an attachment (id=4051) [details]
diff -du ~/tmp/pine-conf-filtered/installed ~/tmp/pine-conf-filtered/current

pine-4.64L-alt6

filterpineconf is a convenient tool.

It would be even more convenient if it would help in cases when the order of
statements in compared conf-files is different. Probably, it could sort them
and place them in some canonical order.

Consider this case:

one installs pine-4.64L-alt6 on a clean system; during the installation, an
/etc/pine.conf with comments is genearted; and now one tries to comapre the
generated /etc/pine.conf with the original concise configuration that came with
the package and that reflects the packager's intentions
(/etc/pine.conf.rpmorig):

filterpineconf /etc/pine.conf > ~/tmp/pine-conf-filtered/current

filterpineconf  /etc/pine.conf.rpmorig > ~/tmp/pine-conf-filtered/installed

diff -du ~/tmp/pine-conf-filtered/installed ~/tmp/pine-conf-filtered/current

The result (attached) shows that there a lot of differences detected, although
the real differences must be just in the order.

Expected result: empty diff (filterpineconf helps you to compare configuration
files with different).orders.