What about the ominous repo-repo?
head -1 /var/log/zypp/history 2008-12-09 21:42:05|radd |repo|file:/usr/src/packages/BUILD/openSUSE-images-11.1/gnome_cd-x11/home/rpmdir
I have never added such a repo and repo-repo is as well not displayed by 'zypper repos'. According to the history file almost 300 packages have been drawn from this fake repo, which points to an invalid URL namely file:/usr/src/packages/BUILD/openSUSE-images-11.1/gnome_cd-x11/home/rpmdir. Is this an error of zypper? What shell repo-repo stand for and where does it come from? 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)
-- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org