mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
19 lines
668 B
Plaintext
19 lines
668 B
Plaintext
# arg 1: the new package version
|
|
post_install() {
|
|
for ver in 5.8.{0,1,2,3,4,5,6,7,8}; do
|
|
[ -h usr/lib/perl5/$ver ] && rm usr/lib/perl5/$ver
|
|
[ -h usr/lib/perl5/site_perl/$ver ] && rm usr/lib/perl5/site_perl/$ver
|
|
[ -h usr/bin/perl$ver ] && rm usr/bin/perl$ver
|
|
done
|
|
return 0
|
|
}
|
|
|
|
post_upgrade() {
|
|
echo '- The directories /usr/lib/perl5/current, /usr/lib/perl5/site_perl/current,'
|
|
echo ' /usr/lib/perl5/site_perl/5.10.1, and /usr/share/perl5/site_perl/5.10.1'
|
|
echo ' have been removed from @INC.'
|
|
|
|
echo '- The script/binary directories are now /usr/bin/*_perl instead of'
|
|
echo ' /usr/lib/perl5/*_perl/bin which will be eventually removed.'
|
|
}
|