From 17d528a5c91223f993fd5ff0db7b53c6ed1916dd Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 24 Dec 2016 14:37:19 +0100 Subject: [PATCH] remove unused functions our_version and check_multiarch_dpkg --- multistrap | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/multistrap b/multistrap index 520b17b..137658c 100755 --- a/multistrap +++ b/multistrap @@ -503,11 +503,6 @@ sub shellescape { return "'$string'"; } -sub our_version { - my $query = `dpkg-query -W -f='\${Version}' multistrap 2>/dev/null`; - ($query ne "") ? return $query : return "2.1.15"; -} - sub add_extra_packages { my $apt_get = shift; my $cachedir = shift; @@ -1325,13 +1320,6 @@ sub cascade { uniq_sort (\@extrapkgs); } -# returns zero on success, non-zero on fail -sub check_multiarch_dpkg { - my $retval = system ("dpkg --print-foreign-architectures > /dev/null 2>&1"); - $retval >>=8; - return $retval; -} - sub system_fatal { my $cmd = shift; my $retval = system ("$cmd");