commit:     0cf3703a4f7a4bebd0cc660690434a7bcffd507a
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 28 18:21:24 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Feb 28 18:21:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0cf3703a

qlop: avoid warning about -s when specifying an atom

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qlop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qlop.c b/qlop.c
index 12c66a6..08ea479 100644
--- a/qlop.c
+++ b/qlop.c
@@ -930,7 +930,8 @@ int qlop_main(int argc, char **argv)
        {
                m.do_merge = 1;
                m.do_unmerge = 1;
-               m.do_sync = 1;
+               if (array_cnt(atoms) == 0)
+                       m.do_sync = 1;
                m.do_time = 1;
        }
 

Reply via email to