diff --git a/meta/classes-recipe/dpkg-base.bbclass b/meta/classes-recipe/dpkg-base.bbclass
index fbb952bd..b392211b 100644
--- a/meta/classes-recipe/dpkg-base.bbclass
+++ b/meta/classes-recipe/dpkg-base.bbclass
@@ -105,7 +105,7 @@ python() {
         if u.startswith("apt://"):
             d.appendVarFlag('do_fetch', 'depends', d.getVar('SCHROOT_DEP'))
 
-            d.appendVarFlag('do_unpack', 'cleandirs', d.getVar('S'))
+            d.appendVarFlag('do_unpack', 'cleandirs', '${S}')
             d.setVarFlag('do_unpack', 'network', d.getVar('TASK_USE_SUDO'))
             break
 
