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:
parent
7810093bba
commit
254df61bd8
@ -145,15 +145,16 @@ find_ebuilds() {
|
|||||||
SC_REMOVED_PACKAGE_LIST=${SC_REMOVED_PACKAGE_LIST:+${SC_REMOVED_PACKAGE_LIST} }${category}${pkg}
|
SC_REMOVED_PACKAGE_LIST=${SC_REMOVED_PACKAGE_LIST:+${SC_REMOVED_PACKAGE_LIST} }${category}${pkg}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Replace with the filtered version
|
SC_ROOT=${category:+../}
|
||||||
|
|
||||||
|
# Replace with the filtered version, placing all atoms
|
||||||
|
# relative to SC_ROOT
|
||||||
SC_CHANGE_LIST=
|
SC_CHANGE_LIST=
|
||||||
for pkg in ${CS_REMOVED_PACKAGE_LIST}; do
|
for pkg in ${SC_REMOVED_PACKAGE_LIST}; do
|
||||||
SC_CHANGE_LIST="${SC_CHANGE_LIST} ${SC_ROOT}${pkg}"
|
SC_CHANGE_LIST="${SC_CHANGE_LIST}${SC_CHANGE_LIST:+ }${SC_ROOT}${pkg}"
|
||||||
done
|
done
|
||||||
|
|
||||||
local sdir
|
local sdir
|
||||||
SC_ROOT=${category:+../}
|
|
||||||
|
|
||||||
for sdir in eclass licenses profiles; do
|
for sdir in eclass licenses profiles; do
|
||||||
check_for_changes ${SC_ROOT}${sdir} >/dev/null && SC_CHANGE_LIST="${SC_CHANGE_LIST} ${SC_ROOT}${sdir}"
|
check_for_changes ${SC_ROOT}${sdir} >/dev/null && SC_CHANGE_LIST="${SC_CHANGE_LIST} ${SC_ROOT}${sdir}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user