Remove support for "keep_dirs", it won't be used.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091015142937-sbf72osvlulzq7d6
This commit is contained in:
@@ -57,7 +57,7 @@ xbps_write_metadata_pkg()
|
||||
if [ ! -f $XBPS_TEMPLATESDIR/${sourcepkg}/${subpkg}.template ]; then
|
||||
msg_error "Cannot find subpackage template!"
|
||||
fi
|
||||
unset run_depends conf_files keep_dirs noarch triggers \
|
||||
unset run_depends conf_files noarch triggers \
|
||||
revision openrc_services essential
|
||||
. $XBPS_TEMPLATESDIR/${sourcepkg}/${subpkg}.template
|
||||
pkgname=${sourcepkg}-${subpkg}
|
||||
@@ -228,13 +228,6 @@ xbps_write_metadata_pkg_real()
|
||||
echo "<dict>" >> $TMPFPLIST
|
||||
echo "<key>file</key>" >> $TMPFPLIST
|
||||
echo "<string>$j</string>" >> $TMPFPLIST
|
||||
for i in ${keep_dirs}; do
|
||||
if [ "$j" = "$i" ]; then
|
||||
echo "<key>keep</key>" >> $TMPFPLIST
|
||||
echo "<true/>" >> $TMPFPLIST
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "</dict>" >> $TMPFPLIST
|
||||
done
|
||||
echo "</array>" >> $TMPFPLIST
|
||||
@@ -317,15 +310,6 @@ _EOF
|
||||
done
|
||||
echo "</array>" >> $TMPFPROPS
|
||||
fi
|
||||
# Keep directories while removing.
|
||||
if [ -n "$keep_dirs" ]; then
|
||||
echo "<key>keep_dirs</key>" >> $TMPFPROPS
|
||||
echo "<array>" >> $TMPFPROPS
|
||||
for f in ${keep_dirs}; do
|
||||
echo "<string>$f</string>" >> $TMPFPROPS
|
||||
done
|
||||
echo "</array>" >> $TMPFPROPS
|
||||
fi
|
||||
|
||||
# Terminate the property list file.
|
||||
echo "</dict>" >> $TMPFPROPS
|
||||
|
||||
Reference in New Issue
Block a user