Commit 5d86566d authored by guinux's avatar guinux

little fix

parent 9c101ed5
......@@ -128,6 +128,7 @@ namespace Pamac {
if (config.check_aur_updates) {
cmds += "-a";
}
updates_nb = 0;
try {
var process = new Subprocess.newv (cmds, SubprocessFlags.STDOUT_PIPE);
process.wait ();
......@@ -136,7 +137,6 @@ namespace Pamac {
// status 100 means updates are available
if (status == 100) {
var dis = new DataInputStream (process.get_stdout_pipe ());
updates_nb = 0;
// count lines
while (dis.read_line () != null) {
updates_nb++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment