Klaus Kaempf schrieb:
* Elmar Stellnberger
[May 05. 2009 17:06]: What if I wanna parse /var/log/zypp/history myself?
Should be rather easy, its a line of '|' separated values. See http://en.opensuse.org/Libzypp/Package_History for a detailed documentation of the various fields.
2008-12-09 21:42:08|install|translation-update|10.3-46.41|noarch| root@build23|repo|3b64255a6e035a146d9da1fc6584133dbba5c81c
i.e. date|install|package.name|version|target/arch|?|?|?
Where can I find the repo tag?
The log contains the 'repo alias' as used in zypper.
How do I resolve the repo tag in order to get what would be put into the Alias or Name column of zypper lr? You don't ;-)
May I also directly extract this info from a file without having to use any special library?
Sure. It was one of the design criteria to have an easily parseable history log.
Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Unfortunately the data in the history file contains a few errors:
grep transfig /var/log/zypp/history 2009-02-24 21:36:57|ralias |knetstats-suse11.0|os11.0-knetstats2009-02-25 16:18:36|install|transfig|3.2.5-159.11|x86_64||openSUSE 11.1-0|3cad487e1add0e45af4b9a7f420fe3522b1a1916
i.e. the line of transfig has been merged with the line of ralias. It is the same for another package; i.e. libotr Perhaps I should file a bug report on this.
grep libotr /var/log/zypp/history 2009-03-03 16:24:28|ralias |os11.0-qstardict|os11.0-KDE-Community2009-03-03 16:26:44|install|libotr2|3.2.0-1.24|x86_64||openSUSE 11.1-0|7b91844d33549f73bff4f0946e764682039fcba5
-- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org