aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-02-09 16:59:20 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-02-09 16:59:20 +0200
commitc194eac2246c0f23ac7b47c6388a8ccb9ff76f80 (patch)
tree2e0dcedc83cc5a6449a741ce6dbd4e770a6f635d /main/apk-tools
parent55f16d862853df7880fe87211ac9730aa4c196e3 (diff)
downloadaports-c194eac2246c0f23ac7b47c6388a8ccb9ff76f80.tar.bz2
aports-c194eac2246c0f23ac7b47c6388a8ccb9ff76f80.tar.xz
main/apk-tools: upgrade to 2.6.6
Diffstat (limited to 'main/apk-tools')
-rw-r--r--main/apk-tools/0001-db-add-support-for-no-cache.patch73
-rw-r--r--main/apk-tools/APKBUILD14
2 files changed, 5 insertions, 82 deletions
diff --git a/main/apk-tools/0001-db-add-support-for-no-cache.patch b/main/apk-tools/0001-db-add-support-for-no-cache.patch
deleted file mode 100644
index b983553289..0000000000
--- a/main/apk-tools/0001-db-add-support-for-no-cache.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From c43bfed8deaa0dab47c54db9b8f374853d345a6b Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Mon, 7 Dec 2015 10:41:13 +0000
-Subject: [PATCH] db: add support for --no-cache
-
-Implement --no-cache. The index is read directly from network and not
-cached. This is useful for docker, where you install a set of packages
-and directly after purge the cache. (see
-https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install)
-
-fixes #4905
----
- src/apk.c | 4 ++++
- src/apk_defines.h | 1 +
- src/database.c | 8 +++++++-
- 3 files changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/src/apk.c b/src/apk.c
-index 8632587..91673d8 100644
---- a/src/apk.c
-+++ b/src/apk.c
-@@ -124,6 +124,9 @@ static int option_parse_global(void *ctx, struct apk_db_options *dbopts, int opt
- case 0x109:
- apk_flags |= APK_NO_NETWORK;
- break;
-+ case 0x115:
-+ apk_flags |= APK_NO_CACHE;
-+ break;
- case 0x112:
- dbopts->arch = optarg;
- break;
-@@ -173,6 +176,7 @@ static const struct apk_option options_global[] = {
- { 0x108, "repositories-file", "Override repositories file",
- required_argument, "REPOFILE" },
- { 0x109, "no-network", "Do not use network (cache is still used)" },
-+ { 0x115, "no-cache", "Read uncached index from network" },
- { 0x112, "arch", "Use architecture with --root",
- required_argument, "ARCH" },
- { 0x114, "print-arch", "Print default arch and exit" },
-diff --git a/src/apk_defines.h b/src/apk_defines.h
-index 69113b4..2aca364 100644
---- a/src/apk_defines.h
-+++ b/src/apk_defines.h
-@@ -76,6 +76,7 @@ extern char **apk_argv;
- #define APK_NO_NETWORK 0x1000
- #define APK_OVERLAY_FROM_STDIN 0x2000
- #define APK_NO_SCRIPTS 0x4000
-+#define APK_NO_CACHE 0x8000
-
- /* default architecture for APK packages. */
- #if defined(__x86_64__)
-diff --git a/src/database.c b/src/database.c
-index 8a56401..31ac3e4 100644
---- a/src/database.c
-+++ b/src/database.c
-@@ -2198,7 +2198,13 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t _repository)
- if (apk_flags & APK_UPDATE_CACHE)
- apk_repository_update(db, repo);
- }
-- r = apk_repo_format_cache_index(APK_BLOB_BUF(buf), repo);
-+ if (apk_flags & APK_NO_CACHE) {
-+ r = apk_repo_format_real_url(db, repo, NULL, buf, sizeof(buf));
-+ if (r == 0)
-+ apk_message("fetch %s", buf);
-+ } else {
-+ r = apk_repo_format_cache_index(APK_BLOB_BUF(buf), repo);
-+ }
- } else {
- db->local_repos |= BIT(repo_num);
- db->available_repos |= BIT(repo_num);
---
-2.6.3
-
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD
index 9ed1a67c24..b16ba9ae63 100644
--- a/main/apk-tools/APKBUILD
+++ b/main/apk-tools/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apk-tools
-pkgver=2.6.5
-pkgrel=1
+pkgver=2.6.6
+pkgrel=0
pkgdesc="Alpine Package Keeper - package manager for alpine"
subpackages="$pkgname-static"
depends=
@@ -13,7 +13,6 @@ if [ "$CBUILD" = "$CHOST" ]; then
makedepends="$makedepends lua5.2-dev"
fi
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz
- 0001-db-add-support-for-no-cache.patch
"
url="http://git.alpinelinux.org/cgit/apk-tools/"
@@ -83,9 +82,6 @@ luaapk() {
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/lib/
}
-md5sums="4a3b636d9d97f6cf8afbfcf77d777dd2 apk-tools-2.6.5.tar.xz
-0752e37a3edbf9d668f3864c45cb3964 0001-db-add-support-for-no-cache.patch"
-sha256sums="4347de7d8dfc0784cecae6d7e5e32d8d4a4f35660e2d9e01e3e3e41899b8ff5f apk-tools-2.6.5.tar.xz
-8fc3ca783f8ce86e47704a8c52511f522c8ae9b192baddb9bb38e8f2d82cbfba 0001-db-add-support-for-no-cache.patch"
-sha512sums="0953a66d3b2a5d186ea4941d33d92c95b9288d59cf9d0e338c1fd7daca4db03aed80cd05229c15db16c22a72094794a0b3979d939e5bc115c41b03b7ae93593b apk-tools-2.6.5.tar.xz
-e9e8c14cdc2a9e0ad246af1e65eac1ba82ce67b464c48c707e2cff01c81987610bf33c37c81df24b53dceead55e8ff323a51987a6991f2560f388571e78ece22 0001-db-add-support-for-no-cache.patch"
+md5sums="5557e3da166c7a4323df25d9849f5235 apk-tools-2.6.6.tar.xz"
+sha256sums="b953d11db39049a569b6c8a03ea576b06ba311f38ca01f90ec9772eecfca092b apk-tools-2.6.6.tar.xz"
+sha512sums="a0d3158cf5b17b4050d411e26c341f2c783fefab26418ab68115470c299b72d50278b9d6ebd8c4c0daa121a0df93aae19358cf979acf9b2245e92853b93387a4 apk-tools-2.6.6.tar.xz"