autodist: add support for running <pkgname>-autoupdate script in /SOURCES after version update if found

This commit is contained in:
Silvan Calarco 2014-06-10 14:21:02 +02:00
parent 4f12cc4969
commit e3e4104f4e

View File

@ -5,7 +5,7 @@
#
# Released under the terms of the GNU GPL release 3 license
#
VERSION=0.9.12
VERSION=0.9.13
me=(${0##*/} $VERSION "Sat Aug 20 2010")
exec 3>`readlink /proc/self/fd/0`
@ -785,6 +785,10 @@ function launch_pkgs_loop() {
}
fi
fi
if [ "$2" != "$SPEC_VERSION" -a -e $source_dir/$pkg-autoupdate ]; then
echo "?= Running autoupdate script with version $SPEC_VERSION"
sh $source_dir/$pkg-autoupdate $SPEC_VERSION
fi
fi
;;
buildinstall|send)