Commit 87b4e8f6 authored by Natanael Copa's avatar Natanael Copa

core/apk-tools: backport support for apk fetch --simulate

parent 3f979f3a
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_pre13
pkgrel=0
pkgrel=1
pkgdesc="Alpine Package Keeper - package manager for alpine"
depends=
makedepends="zlib-dev"
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-fetch-respect-simulate-option.patch"
url="http://git.alpinelinux.org/cgit/apk-tools/"
license=GPL-2
......@@ -13,6 +14,8 @@ license=GPL-2
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i -e 's:-Werror::' Make.rules
patch -p1 < ../0001-fetch-respect-simulate-option.patch || return 1
make || return 1
make DESTDIR="$pkgdir" install
cd "$pkgdir/sbin"
......@@ -24,4 +27,5 @@ build() {
ln -s apk apk_version
}
md5sums="76bec7ece7b210f2f2e1542d06333649 apk-tools-2.0_pre13.tar.bz2"
md5sums="76bec7ece7b210f2f2e1542d06333649 apk-tools-2.0_pre13.tar.bz2
7edb66f98ec4ef4398bd5e816e47d286 0001-fetch-respect-simulate-option.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