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
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
alpine-conf
Commits
2b2d1dd3
Commit
2b2d1dd3
authored
Jun 26, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use LBU_DBDIR and fallback to APK_DATA
parent
296e9fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lbu
lbu
+6
-4
No files found.
lbu
View file @
2b2d1dd3
...
...
@@ -13,9 +13,10 @@ VERSION=1.2
[
"$SFIC"
]
&&
SFIC
=
"$SFIC -i d"
#
globals
CURRENT_TDB
=
"$APK_DATA/current.tdb"
TMPCURRENT_TDB
=
"$APK_DATA/tmp-current.tdb"
COMMITED_TDB
=
"$APK_DATA/commited.tdb"
[
-
z
"$LBU_DBDIR"
]
&&
LBU_DBDIR
=
"${APK_DATA:-$ROOT/var/lib/apk}"
CURRENT_TDB
=
"$LBU_DBDIR/current.tdb"
TMPCURRENT_TDB
=
"$LBU_DBDIR/tmp-current.tdb"
COMMITED_TDB
=
"$LBU_DBDIR/commited.tdb"
EXCLUDE_LIST
=/
etc
/
lbu
/
exclude
INCLUDE_LIST
=/
etc
/
lbu
/
include
...
...
@@ -101,8 +102,9 @@ check_openssl() {
gen_current_tdb
()
{
#
generate
current
tdb
rm
-
f
"$CURRENT_TDB"
mkdir
-
p
"$(dirname
\"
$CURRENT_TDB
\"
)"
$
SFIC
-
R
-
t
--
mask
"$MASK"
--
old
"$APK_DEFAULT_TDB"
$
LBUDIRS
\
|
grep
-
v
^
D
|
awk
'{print $2}'
|
$
SFIC
--
add
$
CURRENT_TDB
--
file
-
|
grep
-
v
^
D
|
awk
'{print $2}'
|
$
SFIC
--
add
"$CURRENT_TDB"
--
file
-
}
#
list_add
(
char
*
listfile
,
char
*
file
...)
...
...
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