Subject: [alpine-devel] apk fetch --recursive broken in >= v3.7

From: Roger Newman <[email-masked]>
Date: Sun, 3 Dec 2017 17:43:14 +0100

Hi,

currently I am not able to fetch some packages with there dependencies. Same packages on v3.6 did not have any of this issues.

## Environment:

/ # cat /etc/issue
Welcome to Alpine Linux 3.7
Kernel \r on an \m (\l)

/ # cat /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.7/main
http://dl-cdn.alpinelinux.org/alpine/v3.7/community

## Example:

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/ --recursive wget
Downloading musl-1.1.18-r2
Downloading libressl2.6-libssl-2.6.3-r0
Downloading wget-1.19.2-r1
Downloading libressl2.6-libcrypto-2.6.3-r0

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/ --recursive curl
curl: unable to select package (or its dependencies)

-- 
Roger Newman

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: "Dean" <[email-masked]>
Date: Tue, 5 Dec 2017 00:26:31 +0800

delete  "--recursive"  parameter, then you can fetch successfully!!!  But I don't why..

[[email-masked] srv]# apk --no-cache fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/  curl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
Downloading curl-7.57.0-r0

[[email-masked] srv]#

------------------ Original ------------------
From:  "Roger Newman";<[email-masked]>;
Date:  Mon, Dec 4, 2017 00:43 AM
To:  "Alpine-devel"<[email-masked]>;

Subject:  [alpine-devel] apk fetch --recursive broken in >= v3.7

Hi,

## Environment:

/ # cat /etc/issue

## Example:

-- 
Roger Newman

---

---

From: Timo Teras <[email-masked]>
Date: Tue, 5 Dec 2017 18:20:44 +0200

On Sun, 3 Dec 2017 17:43:14 +0100
Roger Newman <[email-masked]> wrote:

> currently I am not able to fetch some packages with there
> dependencies. Same packages on v3.6 did not have any of this issues.

It's because shell dependencies where changes from 'busybox' to virtual
'/bin/sh' dependency, and apk expects one to tell which shell to use.
Add 'busybox' to the list of packages and it should work.

apk is getting better error messages for 'fetch' in future.

Timo

---