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:
3a2f0a8
)
craterepo_c: Gen empty repo if empty pkglist is used
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Thu, 9 Oct 2014 13:14:21 +0000
(15:14 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Thu, 9 Oct 2014 13:14:21 +0000
(15:14 +0200)
src/createrepo_c.c
patch
|
blob
|
history
diff --git
a/src/createrepo_c.c
b/src/createrepo_c.c
index
18f78fc
..
2f054b1
100644
(file)
--- a/
src/createrepo_c.c
+++ b/
src/createrepo_c.c
@@
-134,7
+134,9
@@
fill_pool(GThreadPool *pool,
struct PoolTask *task;
long package_count = 0;
- if (!(cmd_options->include_pkgs)) {
+ if (cmd_options->pkglist && !cmd_options->include_pkgs) {
+ g_warning("Used pkglist doesn't contain any useful items");
+ } else if (!(cmd_options->include_pkgs)) {
// --pkglist (or --includepkg) is not supplied -> do dir walk
g_message("Directory walk started");