Add some blank lines around the messages that suggest --without-mask and
authorZac Medico <zmedico@gentoo.org>
Thu, 8 Jan 2009 23:56:57 +0000 (23:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 8 Jan 2009 23:56:57 +0000 (23:56 -0000)
--include-dev. Thanks to Ryan Hill <dirtyepic@g.o> for the suggestion.

svn path=/main/trunk/; revision=12400

bin/repoman

index 84a023561bf6908cea5d069d54714e9a288bdb08..0fdef5181887ecc3a117d2c2a189429427ad178c 100755 (executable)
@@ -1634,13 +1634,24 @@ def grouplist(mylist,seperator="/"):
                        mygroups[xs[0]]+=[seperator.join(xs[1:])]
        return mygroups
 
-if have_pmasked and not (options.without_mask or options.ignore_masked):
-       print bold("Note: use --without-mask to check " + \
-               "KEYWORDS on dependencies of masked packages")
+suggest_ignore_masked = False
+suggest_include_dev = False
 
+if have_pmasked and not (options.without_mask or options.ignore_masked):
+       suggest_ignore_masked = True
 if have_dev_keywords and not options.include_dev:
-       print bold("Note: use --include-dev (-d) to check " + \
-               "dependencies for 'dev' profiles")
+       suggest_include_dev = True
+
+if suggest_ignore_masked or suggest_include_dev:
+       print
+       if suggest_ignore_masked:
+               print bold("Note: use --without-mask to check " + \
+                       "KEYWORDS on dependencies of masked packages")
+
+       if suggest_include_dev:
+               print bold("Note: use --include-dev (-d) to check " + \
+                       "dependencies for 'dev' profiles")
+       print
 
 if options.mode != 'commit':
        if dofull: