projects
/
services
/
createrepo_c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f396b
)
Add warning if --update-md-path used without --update
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 11 Sep 2013 15:02:15 +0000
(17:02 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 11 Sep 2013 15:02:15 +0000
(17:02 +0200)
src/cmd_parser.c
patch
|
blob
|
history
diff --git
a/src/cmd_parser.c
b/src/cmd_parser.c
index
944c1e9
..
33a0eee
100644
(file)
--- a/
src/cmd_parser.c
+++ b/
src/cmd_parser.c
@@
-289,6
+289,9
@@
check_arguments(struct CmdOptions *options,
}
// Process update_md_paths
+ if (options->update_md_paths && !options->update)
+ g_warning("Usage of --update-md-path without --update has no effect!");
+
x = 0;
while (options->update_md_paths && options->update_md_paths[x] != NULL) {
char *path = options->update_md_paths[x];