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
A
atools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
Leo
atools
Commits
f3713957
Commit
f3713957
authored
May 18, 2019
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes and cleanups
parent
3712dcee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
apkbuild-lint
apkbuild-lint
+0
-19
aports-lint
aports-lint
+5
-5
No files found.
apkbuild-lint
View file @
f3713957
...
...
@@ -138,21 +138,6 @@ ret=0
for
apkbuild
;
do
if
[
-f
"
$apkbuild
"
]
;
then
# Try to guess the repo, first see if our working directory is where
# the repo is located
_repo
=
"
${
PWD
%/*
}
"
_repo
=
"
${
repo
%/*
}
"
_repo
=
"
${
repo
##*/
}
"
case
"
$repo
"
in
main|community|testing|unmaintained
)
;;
# Then have the path given to use be used
*
)
_repo
=
"
${
apkbuild
%/*
}
"
_repo
=
"
${
repo
%/*
}
"
_repo
=
"
${
repo
##*/
}
"
;;
esac
# Source apkbuild, we need some nice values
srcdir
=
""
.
"
$apkbuild
"
2>/dev/null
default_builddir_value &
...
...
@@ -170,10 +155,6 @@ for apkbuild; do
space_after_function_parenthesis &
newline_opening_brace &
if
[
-z
"
$SKIP_DUPLICATE_PACKAGE
"
]
;
then
duplicate_package &
fi
# Don't perform these checks on packages from main
if
!
[
-z
"
${
apkbuild
##*main/*
}
"
]
;
then
for
phase
in
prepare build check package
;
do
...
...
aports-lint
View file @
f3713957
...
...
@@ -126,15 +126,15 @@ for apkbuild; do
# Try to guess the repo, first see if our working directory is where
# the repo is located
_repo
=
"
${
PWD
%/*
}
"
_repo
=
"
${
repo
%/*
}
"
_repo
=
"
${
repo
##*/
}
"
case
"
$repo
"
in
_repo
=
"
${
_
repo
%/*
}
"
_repo
=
"
${
_
repo
##*/
}
"
case
"
$
_
repo
"
in
main|community|testing|unmaintained
)
;;
# Then have the path given to use be used
*
)
_repo
=
"
${
apkbuild
%/*
}
"
_repo
=
"
${
repo
%/*
}
"
_repo
=
"
${
repo
##*/
}
"
_repo
=
"
${
_
repo
%/*
}
"
_repo
=
"
${
_
repo
##*/
}
"
;;
esac
...
...
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