[ooo-build-commit] .: bin/ooo-pack-sources

Petr Mladek pmladek at kemper.freedesktop.org
Thu Sep 2 02:30:59 PDT 2010


 bin/ooo-pack-sources |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 749251b733b7061bea464f484b800c1aa3c57180
Author: Petr Mladek <pmladek at walk.suse.cz>
Date:   Thu Sep 2 11:28:54 2010 +0200

    add check for unknown option to ooo-pack-sources
    
    * bin/ooo-pack-sources: check for unknown parameters that starts with "-"

diff --git a/bin/ooo-pack-sources b/bin/ooo-pack-sources
index 9754286..8f76828 100755
--- a/bin/ooo-pack-sources
+++ b/bin/ooo-pack-sources
@@ -503,11 +503,13 @@ for my $arg (@ARGV) {
           @pieces=();
           push @pieces, "$1";
           $pack_ooo_build=0;
+    } elsif ($arg =~ /^-/ ) {
+        die "Error: unknown option: $arg\n";
     } else {
         if (! defined $source_dir) {
             $source_dir = $arg;
         } else {
-            die "Too many arguments $arg\n";
+            die "Error: Too many arguments $arg\n";
         }
     }
 }


More information about the ooo-build-commit mailing list