Remove support for "keep_dirs", it won't be used.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015142937-sbf72osvlulzq7d6
This commit is contained in:
Juan RP
2009-10-15 16:29:37 +02:00
parent c069ff4d49
commit cf04a48a1d
4 changed files with 2 additions and 28 deletions

View File

@ -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

View File

@ -74,7 +74,7 @@ reset_tmpl_vars()
sgml_catalogs xml_catalogs xml_entries sgml_entries \
build_depends libtool_fixup_la_stage no_fixup_libtool \
disable_parallel_build run_depends cross_compiler \
only_for_archs conf_files keep_dirs \
only_for_archs conf_files \
noarch subpackages sourcepkg gtk_iconcache_dirs \
abi_depends api_depends triggers openrc_services \
libtool_no_delete_archives \