From: David Kalnischkies Date: Tue, 17 Jun 2014 14:55:19 +0000 (+0200) Subject: fix SubstVar to be usable as a replace_all method X-Git-Tag: 1.0.5~6 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/224dc038412459a5f64d4e7a16845847b7797a67?hp=224dc038412459a5f64d4e7a16845847b7797a67 fix SubstVar to be usable as a replace_all method The name suggests that it is supposed to substitute a variable with a value, but we tend to use it in a more liberal replace_all() fashion, but this breaks if either of the parameters is empty or more importantly if two "variable" occurrences follow each other directly. ---