hooks/post-install/create-xbps-metadata-scripts: make sure to finalize scripts correctly.
The issue was that if a pkg does not add the missing newline at INSTALL or REMOVE scripts, those were generated with a syntax error. Found by onekk.
This commit is contained in:
parent
3f568e88c2
commit
9df1aa3b4e
@ -302,6 +302,7 @@ _EOF
|
|||||||
found=1
|
found=1
|
||||||
cat ${action_file} >> $tmpf
|
cat ${action_file} >> $tmpf
|
||||||
fi
|
fi
|
||||||
|
echo >> $tmpf
|
||||||
echo "exit 0" >> $tmpf
|
echo "exit 0" >> $tmpf
|
||||||
mv $tmpf ${PKGDESTDIR}/INSTALL && chmod 755 ${PKGDESTDIR}/INSTALL
|
mv $tmpf ${PKGDESTDIR}/INSTALL && chmod 755 ${PKGDESTDIR}/INSTALL
|
||||||
;;
|
;;
|
||||||
@ -311,6 +312,7 @@ _EOF
|
|||||||
found=1
|
found=1
|
||||||
cat ${action_file} >> $tmpf
|
cat ${action_file} >> $tmpf
|
||||||
fi
|
fi
|
||||||
|
echo >> $tmpf
|
||||||
echo "exit 0" >> $tmpf
|
echo "exit 0" >> $tmpf
|
||||||
mv $tmpf ${PKGDESTDIR}/REMOVE && chmod 755 ${PKGDESTDIR}/REMOVE
|
mv $tmpf ${PKGDESTDIR}/REMOVE && chmod 755 ${PKGDESTDIR}/REMOVE
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user