Commit 7c5a774b authored by Natanael Copa's avatar Natanael Copa

core/apk-tools: backport fix

The pre14 has a bug causes apk to not read last package in index.
Next commit in git seems to fix this so we backport that patch.
parent 444da79f
From 4d940c7932c32ed6885c72b5a2e70101b018ad8c Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 6 Jul 2009 08:48:25 +0000
Subject: [PATCH] fetch: respect --simulate option
---
src/fetch.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/fetch.c b/src/fetch.c
index 84f0b39..501dff1 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -82,6 +82,9 @@ static int fetch_package(struct fetch_ctx *fctx,
return -1;
}
+ if (apk_flags & APK_SIMULATE)
+ return 0;
+
snprintf(infile, sizeof(infile), "%s/%s-%s.apk",
db->repos[i].url, pkg->name->name, pkg->version);
--
1.6.3.3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apk-tools
pkgver=2.0_pre14
pkgrel=0
pkgrel=1
pkgdesc="Alpine Package Keeper - package manager for alpine"
depends=
makedepends="zlib-dev openssl-dev pkgconfig"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
0001-io-move-csumming-away-from-bstream-to-gunzip.patch"
url="http://git.alpinelinux.org/cgit/apk-tools/"
license=GPL-2
......@@ -13,6 +15,8 @@ license=GPL-2
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i -e 's:-Werror::' Make.rules
patch -p1 < ../0001-io-move-csumming-away-from-bstream-to-gunzip.patch \
|| return 1
make || return 1
make DESTDIR="$pkgdir" install
......@@ -25,4 +29,5 @@ build() {
ln -s apk apk_version
}
md5sums="1a00b5fefddd652ed06bc5602e73e409 apk-tools-2.0_pre14.tar.bz2"
md5sums="1a00b5fefddd652ed06bc5602e73e409 apk-tools-2.0_pre14.tar.bz2
8350b25dadf4a2574654af477e7283d2 0001-io-move-csumming-away-from-bstream-to-gunzip.patch"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment