[zypp-devel] Progress of installation

Hi, I want to know if it would be possible to retrieve the progress value of installation through zypper and use it in an external program? I need to access the percentage value during the installation progress. How could I achieve this? Regards,. Saurabh -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

On Wednesday 26 September 2012 19:00:31 Saurabh Sood wrote:
-x, --xmlout Switches to XML output. This option is useful for scripts or graphical frontends using zypper. $ zypper --xmlout in xteddy ... <message type="info">Retrieving package xteddy-2.2-16.1.2.x86_64 (1/1), 742.9 KiB (746.9 KiB unpacked)</message> <download url="http://download.opensuse.org/distribution/12.2/repo/oss/suse/x86_64/xteddy-2..." percent="-1" rate="-1"/> <download url="http://download.opensuse.org/distribution/12.2/repo/oss/suse/x86_64/xteddy-2..." rate="-1" done="0"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="2"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="29"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="53"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="74"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="95"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="100"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" done="0"/> -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

On Wednesday 26 September 2012 19:00:31 Saurabh Sood wrote:
-x, --xmlout Switches to XML output. This option is useful for scripts or graphical frontends using zypper. $ zypper --xmlout in xteddy ... <message type="info">Retrieving package xteddy-2.2-16.1.2.x86_64 (1/1), 742.9 KiB (746.9 KiB unpacked)</message> <download url="http://download.opensuse.org/distribution/12.2/repo/oss/suse/x86_64/xteddy-2..." percent="-1" rate="-1"/> <download url="http://download.opensuse.org/distribution/12.2/repo/oss/suse/x86_64/xteddy-2..." rate="-1" done="0"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="2"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="29"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="53"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="74"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="95"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" value="100"/> <progress id="install-resolvable" name="Installing: xteddy-2.2-16.1.2" done="0"/> -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (2)
-
Michael Andres
-
Saurabh Sood