Skip to content

cme fix dpkg now track and display changes

May 31, 2012


I’ve released Config::Model 2.018 which is now able to track the changes done with cme to your configuration data.

Thw GUI now features a new menu entry File -> show unsaved change that will give you a list of the changes done since running the command or since the last save (whichever occured last). For instance:

This feature is also available in non-graphic mode.

As an example, let’s refresh the lcdproc package:

$ cme fix dpkg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Warning in 'control source Standards-Version' value '3.9.2': Current standards version is 3.9.3
Warning in 'copyright Format' value '': Format does not match the recommended URL for DEP-5

- control source Standards-Version: '3.9.2' -> '3.9.3' # applied fix
- copyright Format: '' -> '' # applied fix

The Changes list can be reused to update the changelog, but the author does not dare injecting this directly in debian/changelog…

Let’s check the resulting changes:

$ git diff
diff --git a/debian/control b/debian/control
index 11a5b8a..2b81192 100644
--- a/debian/control
+++ b/debian/control
@@ -20,7 +20,7 @@ Build-Depends: autoconf,
-Standards-Version: 3.9.2
+Standards-Version: 3.9.3
 Vcs-Git: git://
diff --git a/debian/copyright b/debian/copyright
index 6cea444..4b48619 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
 Upstream-Name: lcdproc
 Upstream-Contact: William W. Ferrell 

Last but not least, this track and display changes features is also available for other models, like OpenSsh, lcdproc, multistrap

All the best

  1. OdyX permalink

    Isn’t it “bad” to correct the Standards-Version blindly ? Any such change is supposed to come with checking “at least” the upgrading checklist, so a blind change defeats that idea, IMHO.

    • Yes, you’re right.

      I recommend to update packages this way:

      • run “cme check dpkg” to list warnings
      • run “cme fix dpkg” if you want to fix all warnings (or most warnings: some warnings require manual edition)
      • Cherry pick what to fix through the GUI (with “Cme edit dpkg”)

      In short, the standard-version is changed only when user asks for a “fix”. Either by running “cme fix dpkg” command or by clicking “apply fix” on the GUI. So you are free to choose not to change it.

      All the best

Trackbacks & Pingbacks

  1. Dominique Dumont: cme fix dpkg now track and display changes |

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: