linux*-tkg-config/prepare: Fix cleanup step on non-arch distros (#65)
This commit is contained in:

committed by
GitHub

parent
cb07b08a36
commit
afc7b56bcb
@@ -917,6 +917,7 @@ exit_cleanup() {
|
|||||||
rm -f "$_where"/"$_p"
|
rm -f "$_where"/"$_p"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "${_distro}" = "Arch" ]; then
|
||||||
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
||||||
rm -rf "$_where"/src/*
|
rm -rf "$_where"/src/*
|
||||||
# Double tap
|
# Double tap
|
||||||
@@ -970,7 +971,6 @@ exit_cleanup() {
|
|||||||
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${_distro}" = "Arch" ]; then
|
|
||||||
remove_deps
|
remove_deps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -944,6 +944,7 @@ exit_cleanup() {
|
|||||||
rm -f "$_where"/"$_p"
|
rm -f "$_where"/"$_p"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "${_distro}" = "Arch" ]; then
|
||||||
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
||||||
rm -rf "$_where"/src/*
|
rm -rf "$_where"/src/*
|
||||||
# Double tap
|
# Double tap
|
||||||
@@ -997,7 +998,6 @@ exit_cleanup() {
|
|||||||
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${_distro}" = "Arch" ]; then
|
|
||||||
remove_deps
|
remove_deps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -912,6 +912,7 @@ exit_cleanup() {
|
|||||||
rm -f "$_where"/"$_p"
|
rm -f "$_where"/"$_p"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "${_distro}" = "Arch" ]; then
|
||||||
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
|
||||||
rm -rf "$_where"/src/*
|
rm -rf "$_where"/src/*
|
||||||
# Double tap
|
# Double tap
|
||||||
@@ -965,7 +966,6 @@ exit_cleanup() {
|
|||||||
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${_distro}" = "Arch" ]; then
|
|
||||||
remove_deps
|
remove_deps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user