Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adélie Linux
abuild
Commits
76f3ac40
Commit
76f3ac40
authored
Mar 24, 2017
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: fix -K option
make sure we don't delete files when -K is specified fixes #7008
parent
834cb718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
abuild.in
abuild.in
+7
-6
No files found.
abuild.in
View file @
76f3ac40
...
...
@@ -78,8 +78,8 @@ want_check() {
cleanup
()
{
local
i
=
[
-
z
"$subpkgdir"
]
&&
set_xterm_title
""
if
[
-
n
"$
CLEANUP_FILES
"
];
then
r
m
-
f
$
CLEANUP_FILES
if
[
-
n
"$
keep_build
"
];
then
r
eturn
0
fi
for
i
;
do
case
$
i
in
...
...
@@ -1637,7 +1637,7 @@ rootpkg() {
cd
"$startdir"
rm
-
rf
"$pkgdir"
[
-
n
"$FAKEROOT"
]
&&
msg
"Entering fakeroot..."
do_fakeroot
"$abuild_path"
$
color_opt
\
do_fakeroot
"$abuild_path"
$
color_opt
$
keep_build
\
$
_package
\
prepare_subpackages
\
prepare_language_packs
\
...
...
@@ -1952,8 +1952,9 @@ builddeps() {
export
ABUILD_VISITED
=
"$ABUILD_VISITED $pkg"
msg
"Entering $dir"
cd
"$dir"
&&
$
0
$
forceroot
$
keep
$
quiet
$
install_deps
\
$
recursive
$
upgrade
$
color_opt
abuildindex
||
return
1
cd
"$dir"
&&
$
0
$
forceroot
$
keep
$
keep_build
$
quiet
\
$
install_deps
$
recursive
$
upgrade
$
color_opt
\
abuildindex
||
return
1
done
$
SUDO_APK
add
--
upgrade
--
repository
"$REPODEST/$repo"
\
$
apk_opt_wait
\
...
...
@@ -2261,7 +2262,7 @@ while getopts "AcdfFhkKimnp:P:qrRs:u" opt; do
'F'
)
forceroot
=
"-F"
;;
'h'
)
usage
;;
'k'
)
keep
=
"-k"
;;
'K'
)
CLEANUP
=
""
ERROR_CLEANUP
=
""
;;
'K'
)
keep_build
=
"-K"
;;
'm'
)
disable_colors
color_opt
=
"-m"
;;
'n'
)
die
"Use newapkbuild to create new aports"
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment