Fix my previous two fixes. Now one can enter a category directory and use sunrise-commit to remove packages whose directories are marked as deleted. Successfully tested to work with a Mercurial repository, unlike my previous two commits ;-).

This commit is contained in:
Nathan Phillip Brink 2010-09-23 19:07:44 -04:00
parent 7810093bba
commit 254df61bd8

View File

@ -145,15 +145,16 @@ find_ebuilds() {
SC_REMOVED_PACKAGE_LIST=${SC_REMOVED_PACKAGE_LIST:+${SC_REMOVED_PACKAGE_LIST} }${category}${pkg}
done
# Replace with the filtered version
SC_ROOT=${category:+../}
# Replace with the filtered version, placing all atoms
# relative to SC_ROOT
SC_CHANGE_LIST=
for pkg in ${CS_REMOVED_PACKAGE_LIST}; do
SC_CHANGE_LIST="${SC_CHANGE_LIST} ${SC_ROOT}${pkg}"
for pkg in ${SC_REMOVED_PACKAGE_LIST}; do
SC_CHANGE_LIST="${SC_CHANGE_LIST}${SC_CHANGE_LIST:+ }${SC_ROOT}${pkg}"
done
local sdir
SC_ROOT=${category:+../}
for sdir in eclass licenses profiles; do
check_for_changes ${SC_ROOT}${sdir} >/dev/null && SC_CHANGE_LIST="${SC_CHANGE_LIST} ${SC_ROOT}${sdir}"
done