[arch-projects] [namcap] [PATCH 3/4] nonuniquesources: Also warn on common filenames not overriding name to be unique
Filenames in source() are required to be unique. A common violation of this is from commonly named files (i.e. LICENSE) that aren't part of an upstream tarball. Warn if a source file doesn't have an overriding name, and has a commonly used name, ignoring extension and case. Signed-off-by: James P. Harvey <jamespharvey20 at gmail dot com> Namcap/rules/nonuniquesources.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
On 5/26/19 10:35 PM, James Harvey via arch-projects wrote:
Filenames in source() are required to be unique. A common violation of this is from commonly named files (i.e. LICENSE) that aren't part of an upstream tarball.
Warn if a source file doesn't have an overriding name, and has a commonly used name, ignoring extension and case.
Signed-off-by: James P. Harvey <jamespharvey20 at gmail dot com>
Namcap/rules/nonuniquesources.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
I expect the common case of files named "LICENSE", to be distributed with the PKGBUILD rather than downloaded, in which case it will *always* be unique (for the same reason "PKGBUILD" is unique). The check would need to first make sure that there is a positively existing download protocol.a -- Eli Schwartz Bug Wrangler and Trusted User
Downloaded files in source() are required to be unique. A common
violation of this is from community named files (i.e. LICENSE) that
aren't part of an upstream tarball.
Warn if a source file is downloaded, doesn't have an overriding name,
and has a commonly used name, ignoring extension and case.
Signed-off-by: James P. Harvey
Signed-off-by: James P. Harvey
participants (3)
-
Eli Schwartz
-
James Harvey
-
James P. Harvey