]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
installcheck: support archlinux repos
authorMichael Schroeder <mls@suse.de>
Fri, 22 May 2015 13:45:10 +0000 (15:45 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 22 May 2015 13:45:10 +0000 (15:45 +0200)
tools/installcheck.c

index 73fa61c52fb214f72408c35c872f7b230169605e..3ef67b064e80d99081ea504918d3eec797390a29 100644 (file)
@@ -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"
 
@@ -147,6 +150,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);