Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
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
27
Issues
27
List
Boards
Labels
Service Desk
Milestones
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
138cfd70
Commit
138cfd70
authored
Mar 30, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: wait for lockfile on delete of dependencies
parent
3af17782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
abuild.in
abuild.in
+8
-7
No files found.
abuild.in
View file @
138cfd70
...
...
@@ -21,6 +21,7 @@ BUILD_BASE="build-base"
SUDO
=
${
SUDO
:-
"sudo"
}
FAKEROOT
=
${
FAKEROOT
:-
"fakeroot"
}
APK
=
${
APK
:-
apk
}
apk_opt_wait
=
"--wait 30"
# read config
ABUILD_CONF
=
${
ABUILD_CONF
:-
"
$sysconfdir
/abuild.conf"
}
...
...
@@ -82,7 +83,7 @@ set_xterm_title() {
cleanup
()
{
set_xterm_title
""
if
[
-z
"
$install_after
"
]
&&
[
-n
"
$uninstall_after
"
]
;
then
$SUDO
$APK
del
$uninstall_after
$SUDO
$APK
del
$
apk_opt_wait
$
uninstall_after
fi
}
...
...
@@ -1104,10 +1105,10 @@ builddeps() {
# make a --simluate run first to detect missing deps
# apk-tools --virtual is no goot at reporting those.
$SUDO
$APK
add
--repository
"
$abuildrepo
"
\
--wait
30
\
$apk_opt_wait
\
--simulate
--quiet
$deps
||
return
1
$SUDO
$APK
add
--repository
"
$abuildrepo
"
\
--wait
30
\
$apk_opt_wait
\
--virtual
.makedepends-
$pkgname
$deps
\
&&
return
0
fi
...
...
@@ -1139,7 +1140,7 @@ builddeps() {
$recursive
$upgrade
$color_opt
abuildindex
||
return
1
done
$SUDO
$APK
add
-u
--repository
"
$abuildrepo
"
\
--wait
30
\
$apk_opt_wait
\
--virtual
.makedepends-
$pkgname
$deps
}
...
...
@@ -1253,18 +1254,18 @@ post_add() {
post_add
$i
||
return
1
fi
done
$SUDO
$APK
add
--wait
30
-u
"
$pkgf
"
||
die
"Failed to install
$1
"
$SUDO
$APK
add
$apk_opt_wait
-u
"
$pkgf
"
||
die
"Failed to install
$1
"
}
installdeps
()
{
local
deps i
$SUDO
$APK
add
--wait
30
--repository
"
$abuildrepo
"
\
$SUDO
$APK
add
$apk_opt_wait
--repository
"
$abuildrepo
"
\
--virtual
.makedepends-
$pkgname
\
$makedepends
}
uninstalldeps
(){
$SUDO
$APK
del .makedepends-
$pkgname
$SUDO
$APK
del
$apk_opt_wait
.makedepends-
$pkgname
}
all
()
{
...
...
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