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:
d5099ed
)
fix missing </stream> tag in xml output
author
Thomas Goettlicher
<tgoettlicher@suse.de>
Tue, 14 Aug 2007 11:29:10 +0000
(11:29 +0000)
committer
Thomas Goettlicher
<tgoettlicher@suse.de>
Tue, 14 Aug 2007 11:29:10 +0000
(11:29 +0000)
src/zypper.cc
patch
|
blob
|
history
diff --git
a/src/zypper.cc
b/src/zypper.cc
index
964e327
..
36b5176
100644
(file)
--- a/
src/zypper.cc
+++ b/
src/zypper.cc
@@
-1404,6
+1404,10
@@
int safe_one_command(int argc, char **argv)
cerr << ex.asUserString() << endl;
report_a_bug(cerr);
}
+
+ if ( gSettings.machine_readable )
+ cout << "</stream>" << endl;
+
return ret;
}
@@
-1507,9
+1511,6
@@
int main(int argc, char **argv)
}
} say_goodbye __attribute__ ((__unused__));
- if ( gSettings.machine_readable )
- cout << "</stream>" << endl;
-
// set locale
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);