diff options
author | Alexander Lenhardt <alexander.lenhardt@nokia.com> | 2012-03-13 17:05:31 +0100 |
---|---|---|
committer | Alexander Lenhardt <alexander.lenhardt@nokia.com> | 2012-03-13 17:20:17 +0100 |
commit | c1da312f182ad1b81a1f0ce627e4f9b3eddbf92b (patch) | |
tree | 92ae6f71c9631d483ef036a0f002a791f797ff07 | |
parent | be8fe2b563f212c4841fec338d4f2f29ca56f14e (diff) |
fixed --update mode
- sanity check for the number of remaining arguments was wrong
in the --update mode
Change-Id: Icbdf90aafccd966393385635ae32053bba14a4fb
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
-rw-r--r-- | installerbuilder/repogen/repogen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/installerbuilder/repogen/repogen.cpp b/installerbuilder/repogen/repogen.cpp index 474bfb2cc..3613ea52b 100644 --- a/installerbuilder/repogen/repogen.cpp +++ b/installerbuilder/repogen/repogen.cpp @@ -175,7 +175,8 @@ int main(int argc, char** argv) //TODO: adjust to the new argument/option usage if ((packagesDir.isEmpty() && configDir.isEmpty() && args.count() < 4) || ((packagesDir.isEmpty() || configDir.isEmpty()) && args.count() < 3) //use the old check - || (args.count() < 2)) { //only one dir set by the new options + || (updateExistingRepository && args.count() != 1) + || (!updateExistingRepository && args.count() < 2)) { //only one dir set by the new options // both dirs set by the new options printUsage(); return 1; |