Exit unsuccessfully when in commit mode and nothing is found to commit. Thanks
authorZac Medico <zmedico@gentoo.org>
Tue, 21 Apr 2009 06:08:57 +0000 (06:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 21 Apr 2009 06:08:57 +0000 (06:08 -0000)
to Jeremy Olexa <darkside@g.o> for the suggestion.

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

bin/repoman

index 9d118574664040f3e485e86a4a8b40580cf62425..95a05119a2b5d983e337e5235dbae8cf56eda004 100755 (executable)
@@ -1900,7 +1900,7 @@ else:
                        print
                        print "(Didn't find any changed files...)"
                        print
-                       sys.exit(0)
+                       sys.exit(1)
 
        # Manifests need to be regenerated after all other commits, so don't commit
        # them now even if they have changed.