summaryrefslogtreecommitdiff
path: root/tools/installcheck.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 14:54:23 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 14:54:24 +0900
commit1a93853889c819ac2d3c8e83e856f4775e664b00 (patch)
tree283fb5892b7e064fb16c1f192bc61c86110f31c2 /tools/installcheck.c
parent8a7ffe4fc2b44b84fb045f80c1a016b3f200aa8b (diff)
downloadlibsolv-1a93853889c819ac2d3c8e83e856f4775e664b00.tar.gz
libsolv-1a93853889c819ac2d3c8e83e856f4775e664b00.tar.bz2
libsolv-1a93853889c819ac2d3c8e83e856f4775e664b00.zip
Imported Upstream version 0.6.11upstream/0.6.11
Change-Id: Ia7fcc570c551205421c68cc6feb2ecfd3c97e149 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tools/installcheck.c')
-rw-r--r--tools/installcheck.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/installcheck.c b/tools/installcheck.c
index 73fa61c..3ef67b0 100644
--- a/tools/installcheck.c
+++ b/tools/installcheck.c
@@ -29,6 +29,9 @@
#ifdef ENABLE_DEBIAN
#include "repo_deb.h"
#endif
+#ifdef ENABLE_ARCHREPO
+#include "repo_arch.h"
+#endif
#include "solver.h"
#include "solv_xfopen.h"
@@ -148,6 +151,12 @@ main(int argc, char **argv)
r = repo_add_debpackages(repo, fp, 0);
}
#endif
+#ifdef ENABLE_ARCHREPO
+ else if (l >= 10 && (!strcmp(argv[i] + l - 10, ".db.tar.gz") || !strcmp(argv[i] + l - 10, ".db.tar.xz")))
+ {
+ r = repo_add_arch_repo(repo, fp, 0);
+ }
+#endif
else
r = repo_add_solv(repo, fp, 0);
if (r)