Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TBK
aports
Commits
4e87fc76
Commit
4e87fc76
authored
8 years ago
by
Jakub Jirutka
Browse files
Options
Downloads
Patches
Plain Diff
travis: fix set_repositories_for(), needs sudo
parent
5840a481
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis/build-pkgs
+4
-4
4 additions, 4 deletions
.travis/build-pkgs
with
4 additions
and
4 deletions
.travis/build-pkgs
+
4
−
4
View file @
4e87fc76
...
@@ -38,15 +38,15 @@ changed_abuilds() {
...
@@ -38,15 +38,15 @@ changed_abuilds() {
# $1: the target repository; main, community, or testing
# $1: the target repository; main, community, or testing
set_repositories_for
()
{
set_repositories_for
()
{
local
target_repo
=
"
$1
"
local
target_repo
=
"
$1
"
local
repos
_file
=
'/etc/apk/repositories
'
local
repos
=
'
'
printf
''
>
$repos_file
local
repo
;
for
repo
in
main community testing
;
do
local
repo
;
for
repo
in
main community testing
;
do
printf
'%s\n'
"
$MIRROR_URI
/
$repo
"
>>
$repos_file
repos
=
"
$repos
$MIRROR_URI
/
$repo
"
[
"
$repo
"
=
"
$target_repo
"
]
&&
break
[
"
$repo
"
=
"
$target_repo
"
]
&&
break
done
done
apk update
sudo printf
'%s\n'
$repos
>
/etc/apk/repositories
sudo
apk update
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment