diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 4213593a4b2..500fef5a4dd 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -31,12 +31,11 @@ then # build is not running on Gitlab-CI. sed '/-DPLUGIN_COLUMNSTORE=NO/d' -i debian/rules # Take the files and part of control from MCS directory - if [ ! -f debian/mariadb-plugin-columnstore.install ] - then - cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ - echo >> debian/control - cat storage/columnstore/columnstore/debian/control >> debian/control - fi + cp -v storage/columnstore/columnstore/debian/mariadb-plugin-columnstore.* debian/ + # idempotent, except for the blank line, but that can be tolerated. + sed -e '/Package: mariadb-plugin-columnstore/,/^$/d' -i debian/control + echo >> debian/control + cat storage/columnstore/columnstore/debian/control >> debian/control fi # Look up distro-version specific stuff