app-backup/burp: make sure oldver is local to pkg_postinst()
authorMarek Szuba <marecki@gentoo.org>
Thu, 27 Apr 2017 13:53:44 +0000 (15:53 +0200)
committerMarek Szuba <marecki@gentoo.org>
Thu, 27 Apr 2017 14:01:06 +0000 (16:01 +0200)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-backup/burp/burp-2.0.54.ebuild

index cf7dee17673d682909e13ff4e7e76f4552074680..694caae538ae3d9f11e5ce6a45580dc44719bada 100644 (file)
@@ -94,6 +94,7 @@ pkg_postinst() {
 
        # According to PMS this can be a space-separated list of version
        # numbers, even though in practice it is typically just one.
+       local oldver
        for oldver in ${REPLACING_VERSIONS}; do
                if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
                        ewarn "Starting with version 2.0.54 we no longer patch bedup to use"