Exit unsuccessfully when in commit mode and nothing is found to commit. Thanks
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:22:19 +0000 (07:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:22:19 +0000 (07:22 -0000)
to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r13379)

svn path=/main/branches/2.1.6/; revision=13531

bin/repoman

index cce3f9a9bed23f304947db0d6074601b8a9d5efe..8fdbea79d5ec9f5fcf6742a91d9cfb2516a4e6cf 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.