From e0d30dd2d36591de486d134e2eb07578d334bd32 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
Date: Thu, 17 Jan 2019 16:26:39 +0100
Subject: [PATCH] Fixed substract -> subtract

---
 live-build/auto/config | 4 ++--
 live-build/functions   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/live-build/auto/config b/live-build/auto/config
index d6d62cbb..3d155228 100755
--- a/live-build/auto/config
+++ b/live-build/auto/config
@@ -141,13 +141,13 @@ add_layered_pass_delta() {
 
     local seed_regexp="$3"
     if [ -z "${seed_regexp}" ]; then
-        substract_package_lists ${2} "" >> config/package-lists/livecd-rootfs.removal-list.chroot_${1}_no-${2}
+        subtract_package_lists ${2} "" >> config/package-lists/livecd-rootfs.removal-list.chroot_${1}_no-${2}
         return
     fi
 
     for seed in $(ls config/germinate-output/|grep -P "$seed_regexp"); do
        pass=${1}_${seed}
-       substract_package_lists ${2} ${seed} >> config/package-lists/livecd-rootfs.removal-list.chroot_$pass
+       subtract_package_lists ${2} ${seed} >> config/package-lists/livecd-rootfs.removal-list.chroot_$pass
     done
 }
 
diff --git a/live-build/functions b/live-build/functions
index 33ef79e2..1127897e 100644
--- a/live-build/functions
+++ b/live-build/functions
@@ -592,11 +592,11 @@ list_packages_from_seed () {
     done|sort -u
 }
 
-substract_package_lists() {
-    # Substract a package list from another
+subtract_package_lists() {
+    # Subtract a package list from another
     #
     # $1 source package list
-    # $2 Package list to substract from source package list
+    # $2 Package list to subtract from source package list
     local list1=$(mktemp)
     local list2=$(mktemp)