projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d17e04
)
added status "no-update-repositories" to xml output when no update
author
Thomas Goettlicher
<tgoettlicher@suse.de>
Tue, 7 Aug 2007 14:26:09 +0000
(14:26 +0000)
committer
Thomas Goettlicher
<tgoettlicher@suse.de>
Tue, 7 Aug 2007 14:26:09 +0000
(14:26 +0000)
repos are defined (#fate 300635)
src/zypper-misc.cc
patch
|
blob
|
history
diff --git
a/src/zypper-misc.cc
b/src/zypper-misc.cc
index
d504c1c
..
3c627fe
100644
(file)
--- a/
src/zypper-misc.cc
+++ b/
src/zypper-misc.cc
@@
-705,11
+705,16
@@
bool xml_list_patches ()
}
+ unsigned int patchcount=0;
+
it = pool.byKindBegin<Patch> ();
for (; it != e; ++it )
{
ResObject::constPtr res = it->resolvable();
+
+ patchcount++;
+
if ( it->status().isNeeded())
{
Patch::constPtr patch = asKind<Patch>(res);
@@
-740,6
+745,11
@@
bool xml_list_patches ()
}
}
+ if (patchcount == 0)
+ {
+ cout << "<appletinfo status=\"no-update-repositories\"/>" << endl;
+ }
+
return pkg_mgr_available;
}