Skip to content

main/busybox: fix warning on upgrade

John S Long requested to merge Adduc/aports:master into master

Fixes warning on upgrade when no symlinked binaries are present (excluding those from busybox)

Steps to Replicate


# Start a fresh alpine container (replicateable in alpine:edge or alpine:3.13)
$ docker run -t -i alpine:edge sh

# Upgrade busybox
$ apk upgrade busybox
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/2) Upgrading busybox (1.32.0-r8 -> 1.32.1-r2)
Executing busybox-1.32.1-r2.post-upgrade
BusyBox v1.32.1 () multi-call binary.

Usage: stat [OPTIONS] FILE...

Display file (default) or filesystem status

        -c FMT  Use the specified format
        -f      Display filesystem status
        -L      Follow links
        -t      Terse display

FMT sequences for files:
 %a     Access rights in octal
 %A     Access rights in human readable form
 %b     Number of blocks allocated (see %B)
 %B     Size in bytes of each block reported by %b
 %d     Device number in decimal
 %D     Device number in hex
 %f     Raw mode in hex
 %F     File type
 %g     Group ID
 %G     Group name
 %h     Number of hard links
 %i     Inode number
 %n     File name
 %N     File name, with -> TARGET if symlink
 %o     I/O block size
 %s     Total size in bytes
 %t     Major device type in hex
 %T     Minor device type in hex
 %u     User ID
 %U     User name
 %x     Time of last access
 %X     Time of last access as seconds since Epoch
 %y     Time of last modification
 %Y     Time of last modification as seconds since Epoch
 %z     Time of last change
 %Z     Time of last change as seconds since Epoch

FMT sequences for file systems:
 %a     Free blocks available to non-superuser
 %b     Total data blocks
 %c     Total file nodes
 %d     Free file nodes
 %f     Free blocks
 %i     File System ID in hex
 %l     Maximum length of filenames
 %n     File name
 %s     Block size (for faster transfer)
 %S     Fundamental block size (for block counts)
 %t     Type in hex
 %T     Type in human readable form
(2/2) Upgrading ssl_client (1.32.0-r8 -> 1.32.1-r2)
Executing busybox-1.32.1-r2.trigger
OK: 6 MiB in 14 packages

This changeset fixes the invocation of stat.

Merge request reports