shutils: prepare for upcoming "$conflicts" support.
--HG-- extra : convert_revision : 021b9ea71ef7dbd8bcdef844a9e1379613db88d3
This commit is contained in:
parent
73dab0587b
commit
2f5d1187a3
2 changed files with 11 additions and 1 deletions
|
@ -337,6 +337,16 @@ _EOF
|
|||
echo "</array>" >> $TMPFPROPS
|
||||
fi
|
||||
|
||||
# Conflicting package(s).
|
||||
if [ -n "$conflicts" ]; then
|
||||
echo "<key>conflicts</key>" >> $TMPFPROPS
|
||||
echo "<array>" >> $TMPFPROPS
|
||||
for f in ${conflicts}; do
|
||||
echo "<string>$(echo $f|sed "s|<|\<|g;s|>|\>|g")</string>" >> $TMPFPROPS
|
||||
done
|
||||
echo "</array>" >> $TMPFPROPS
|
||||
fi
|
||||
|
||||
# Terminate the property list file.
|
||||
echo "</dict>" >> $TMPFPROPS
|
||||
echo "</plist>" >> $TMPFPROPS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue