[Piuparts-devel] Bug#1019036: piuparts should diff modified files

Gioele Barabucci gioele at svario.it
Sat Sep 3 10:35:26 BST 2022


Package: piuparts
Version: 1.1.5
Severity: wishlist

When a modified files is found, piuparts should show the difference 
between the expected and the found file.

The addition of a diff would make debugging problems spotted by piuparts 
jobs running on remote, inaccessible hosts (for instance, salsa-ci 
runners) much easier.

For example, in addition to the DEBUG message

 > 0m9.7s DEBUG: Modified(user, group, mode, size, target):
 > /etc/nsswitch.conf expected(root, root, - 100644, 506, None)
 > != found(root, root, - 100644, 494, None)

piuparts could also show the differences produced by `diff -u`:

     --- /etc/nsswitch.conf.expected
     +++ /etc/nsswitch.conf
     @@ -18,4 +18,3 @@
      rpc:            db files

      netgroup:       nis
     -sudoers:        files sss

Regards,

--
Gioele Barabucci



More information about the Piuparts-devel mailing list