Suggestion: Changelog Viewer

Asked by Alessio L. on 2011-01-15

This utility can be useful in my opinion.

Description:

A program (or a tab of UT) that reads the changelogs of the various programs (/usr/share/doc/PROGRAM NAME/changelog*gz) and, eventually, allow the user to contact the author of a specific change.

Mock Up:

http://dl.dropbox.com/u/1113702/Varie/Changelog%20Viewer%20Preview.png

Mock Up Legenda:

First checkbox: selects a list of valid packages from the list (packages with changelog)
Second checkbox: selects a specific data among the ones in the changelog
First Text box: displays the content of the selected entry ordering the infos as displayed (author, version, etc.)
First button: opens the default e-mail client or similar and sets the 'To:' field (OPTIONAL)

Possible versions:

VERSION 1:

Targets: changelog.gz

Due to the no-ordinate structure a parsing of the entries in the changelog would be very very hard, so, in that case, the mock up would just consists in the first checkbox and the text box fields (the last one showing the whole changelog instead of the ordinate infos).

VERSION 2:

Targets: changelog.Debian.gz

The mock up was built upon this version.

Example:

zlib (1:1.2.3.4.dfsg-2) unstable; urgency=low

  * Revert explict EOF indication to avoid triggering an infinite loop
    in man-db while rebuilding the caches (closes: #562518).

 -- M B <email address hidden> Fri, 25 Dec 2009 15:02:23 +0000

zlib (1:1.2.3.4.dfsg-1) unstable; urgency=low

  * New upstream release.
  * This release contains refactored handling of 64 bit types which should
    stop warnings being generated in some configurations (closes: #439980).
  * This release also fixes handling of EOF in gzio (closes: #301283).
  * Fix symbol version for inflateUndermine.
  * Move -dbg to debug section.
  * Add upstream home page.
  * Policy 3.8.3.

 -- M B <email address hidden> Thu, 24 Dec 2009 17:35:16 +0000

POSSIBLE IMPLEMENTATION:

At the program/ UT tab startup: collect the entries for the first checkbox, the other fields are blocked.

First checkbox:

   Initializing:

   for folder in os.listdir('/usr/share/doc/'):
        if os.path.isfile('/usr/share/doc/'+folder+'/changelog.Debian.gz'): # changelog.gz for Version 2
           *ADD folder to checkbox*

   At selection:

   Extract the .gz package into a temporary folder.
   Parse the changelog for data and creating a list data-infos:(Version 2 only)
   24 Dec 2009 17:35:16, zlib (1:1.2.3.4.dfsg-1) [...] <email address hidden>

   Data raw format: -- M B <email address hidden> Thu, 24 Dec 2009 17:35:16 +0000
   Processed data format: 24 Dec 2009 17:35:16 (+0000 was added)

Second checkbox: (Version 2 only)

   Startup:

   Enabled after the selection of a package from the checkbox number 1.

   At selection:

   Collect the raw infos associated to the selected data and parse them.
   Display the parsed infos in the text box enablying it.
   Enable the button and associate to the e-mail client calling function the correct e-mail.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Tweak Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-15
Last reply:
2011-01-16
Ding Zhou (tualatrix) said : #1

Thanks for your idea *again*.

It's cool. Maybe it is better to be implemented as a Plugin for Ubuntu Tweak, not as a core feature.

So I need to first implement the Plugin System for Ubuntu Tweak.

Alessio L. (scionescire) said : #2

You're welcome ;)

If you have something in mind you can let me know how this plugin has to be and I can try to create it for you.

Can you help with this problem?

Provide an answer of your own, or ask Alessio L. for more information if necessary.

To post a message you must log in.