Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Leo
atools
Commits
fb88f636
Commit
fb88f636
authored
May 22, 2019
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pkgname_dirname_mismatch
parent
a405c501
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
alint.5.scd
alint.5.scd
+5
-0
aports-lint
aports-lint
+17
-0
No files found.
alint.5.scd
View file @
fb88f636
...
...
@@ -77,6 +77,11 @@ The APKBUILD has duplicate checkdepends. One of them must be removed.
Declaring
duplicate
dependencies
is
superfluous
.
##
pkgname_dirname_mismatch
The
pkgname
variable
of
the
APKBUILD
has
value
*
foo
*
but
the
directory
in
which
the
APKBUILD
is
found
is
not
named
*
foo
*
#
TAGS
(
apkbuild
-
lint
)
The
following
tags
are
used
by
the
*
apkbuild
-
lint
*
program
...
...
aports-lint
View file @
fb88f636
...
...
@@ -120,6 +120,21 @@ duplicate_package() {
done
}
pkgname_dirname_mismatch
()
{
[
"
$SKIP_PKGNAME_DIRNAME_MISMATCH
"
]
&&
return
0
local
_dirname
=
case
"
${
apkbuild
%%/*
}
"
in
main|community|testing|unmaintained|non-free
)
_dirname
=
"
${
apkbuild
%/*
}
"
_dirname
=
"
${
_dirname
##*/
}
"
;;
*
)
return
0
;;
esac
if
[
"
$pkgname
"
!=
"
$_dirname
"
]
;
then
printf
"
$apkbuild
:: pkgname is '
$pkgname
' but is in directory '
$_dirname
'
\n
"
fi
}
for
apkbuild
;
do
if
[
-f
"
$apkbuild
"
]
;
then
...
...
@@ -162,6 +177,8 @@ for apkbuild; do
duplicate_package &
fi
pkgname_dirname_mismatch &
wait
else
...
...
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