aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-28 16:05:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-28 16:05:37 +0000
commitada3afa9aa74972ec117df1f6cc420615fc0b176 (patch)
treecbcb4dfb81bf4249f0feb00a328a25a9dc63f5ca /main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch
parent9e581eee8d5bfd327be2a1d04927da4baed62460 (diff)
downloadaports-ada3afa9aa74972ec117df1f6cc420615fc0b176.tar.bz2
aports-ada3afa9aa74972ec117df1f6cc420615fc0b176.tar.xz
main/abuild: upgrade to 2.25.0_rc1
Diffstat (limited to 'main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch')
-rw-r--r--main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch b/main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch
deleted file mode 100644
index fcf8c6f263..0000000000
--- a/main/abuild/0001-abuild-avoid-division-by-zero-when-input-is-zero-for.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From b67dec210ad22b1ff9156ead892593c8a2f23925 Mon Sep 17 00:00:00 2001
-From: Christian Kampka <christian@kampka.net>
-Date: Sat, 17 Oct 2015 15:49:27 +0200
-Subject: [PATCH] abuild: avoid division by zero when input is zero for
- calculating human size for packages
-
-This occurs when building meta packages that do not have any package content.
----
- abuild.in | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/abuild.in b/abuild.in
-index 3b6fe04..0dd8f9a 100644
---- a/abuild.in
-+++ b/abuild.in
-@@ -1253,7 +1253,7 @@ scan_pkgconfig_depends() {
- # read size in bytes from stdin and show as human readable
- human_size() {
- awk '{ split("B KB MB GB TB PB", type)
-- for(i=5; y < 1; i--)
-+ for(i=5; y < 1 && $1 > 0; i--)
- y = $1 / (2**(10*i))
- printf("%.1f %s\n", y, type[i+2]) }'
- }
-@@ -2209,4 +2209,3 @@ for i in $install_after; do
- done
-
- cleanup
--
---
-2.6.1
-