Bug 22225 - filterpineconf could help with different orders of statements (sort ?)
Summary: filterpineconf could help with different orders of statements (sort ?)
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: pine (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 22226
  Show dependency tree
 
Reported: 2009-11-09 18:32 MSK by Ivan Zakharyaschev
Modified: 2009-11-09 18:41 MSK (History)
0 users

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2009-11-09 18:32:36 MSK
Created attachment 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.