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
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
3ac0a8e0
Commit
3ac0a8e0
authored
Apr 04, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: move abuildrepo to ~/.cache/abuild/$repo
We no require apk-tools-2.1
parent
8f6f8763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
24 deletions
+14
-24
abuild.in
abuild.in
+14
-24
No files found.
abuild.in
View file @
3ac0a8e0
...
...
@@ -10,7 +10,7 @@
abuild_ver
=
@VERSION@
sysconfdir
=
@sysconfdir@
abuildrepo
=
@abuildrepo@
abuildrepo
_base
=
@abuildrepo@
datadir
=
@datadir@
program
=
${
0
##*/
}
...
...
@@ -1009,31 +1009,20 @@ apk_up2date() {
abuildindex_up2date
()
{
local
i
getpkgver
||
return
1
for
i
in
$pkgname
$subpackages
;
do
local
found
=
dir
=
local
apk
=
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
# look for file in all arch dirs
for
dir
in
"
$abuildrepo
"
/
*
;
do
[
-d
"
$dir
"
]
||
continue
local
file
=
"
$dir
"
/
$apk
local
idx
=
"
$dir
"
/APKINDEX.tar.gz
# check if index is missing
[
-f
"
$idx
"
]
||
return
1
local dir
=
"
$abuildrepo
"
/
$CARCH
local
apk
=
"
${
pkgname
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
local
idx
=
"
$dir
"
/APKINDEX.tar.gz
local
file
=
"
$dir
"
/
$apk
# check if index is missing
[
-f
"
$idx
"
]
||
return
1
# check if file is there but is newer than index
if
[
-f
"
$file
"
]
;
then
found
=
1
if
[
"
$file
"
-nt
"
$idx
"
]
;
then
return
1
fi
fi
done
# if link or file is missing, then we need update abuildrepo index
[
-f
"
$file
"
]
||
return
1
# if file exists and is newer than index, then we need update index
[
"
$file
"
-nt
"
$idx
"
]
&&
return
1
# we are not up2date if file was not found in any arch dir
[
-z
"
$found
"
]
&&
return
1
done
return
0
}
...
...
@@ -1427,6 +1416,7 @@ pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
pkgrel
=
0
repo
=
${
startdir
%/*
}
repo
=
${
repo
##*/
}
abuildrepo
=
"
$abuildrepo_base
"
/
$repo
SRCDEST
=
${
SRCDEST
:-
$startdir
}
PKGDEST
=
${
PKGDEST
:-
$startdir
}
...
...
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