[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. v24-7-ga3cb799

2018-10-09 Thread Dave Reisner via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The branch, master has been updated
   via  a3cb799a8f63186b843db6a57da12d74a9320686 (commit)
   via  cfcc53c94d0bd67fc69e06c6c5f52bd801ccbe22 (commit)
   via  c511e624d4f0264d1ee4f32b08b59352d76708e5 (commit)
   via  e2a1189dbd0f3d8c051e2d21b8c8aec9b3b091c7 (commit)
  from  f8cc481e7a4cb33a351308b3f440870fef57fe72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit a3cb799a8f63186b843db6a57da12d74a9320686
Author: Dave Reisner 
Date:   Mon Oct 8 19:45:11 2018 -0400

install/block: avoid conditional addition of drivers

Avoid over-optimizing autodetect and always add these. This allows
storage drivers to be builtins and still trigger addition of the block
node driver.

commit cfcc53c94d0bd67fc69e06c6c5f52bd801ccbe22
Author: Dave Reisner 
Date:   Thu Mar 29 05:46:08 2018 -0400

ship /var/run as symlink to /run

This might not strictly be strictly needed, but systemd documents it as
being a requirement, else it adds a var-run-bad taint flag.

commit c511e624d4f0264d1ee4f32b08b59352d76708e5
Author: Dave Reisner 
Date:   Sat Dec 30 12:18:40 2017 -0500

Remove install hook aliases for block and keyboard

These have been deprecated since 2012. I think that's enough time for
people to migrate.

commit e2a1189dbd0f3d8c051e2d21b8c8aec9b3b091c7
Author: Dave Reisner 
Date:   Sat Dec 30 12:16:12 2017 -0500

cleanup some shellcheck lint warnings

---

Summary of changes:
 functions|  3 ++-
 install/block| 25 -
 install/fw   |  1 -
 install/mmc  |  1 -
 install/pata |  1 -
 install/sata |  1 -
 install/scsi |  1 -
 install/usb  |  1 -
 install/usbinput |  1 -
 install/virtio   |  1 -
 mkinitcpio   | 24 +++-
 11 files changed, 21 insertions(+), 39 deletions(-)
 delete mode 12 install/fw
 delete mode 12 install/mmc
 delete mode 12 install/pata
 delete mode 12 install/sata
 delete mode 12 install/scsi
 delete mode 12 install/usb
 delete mode 12 install/usbinput
 delete mode 12 install/virtio


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [namcap] [PATCH v2] Warn for non-unique source filenames

2018-10-09 Thread Simon Doppler
Use a PkgbuildRule instead of a PkgInfoRule

---
 Namcap/rules/pkginfo.py | 11 ++-
 namcap-tags |  1 +
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Namcap/rules/pkginfo.py b/Namcap/rules/pkginfo.py
index 216e417..5a42810 100644
--- a/Namcap/rules/pkginfo.py
+++ b/Namcap/rules/pkginfo.py
@@ -20,7 +20,8 @@
 "These rules checks basic sanity of package metadata"
 
 import re
-from Namcap.ruleclass import PkgInfoRule
+import os
+from Namcap.ruleclass import PkgInfoRule,PkgbuildRule
 
 class CapsPkgnameRule(PkgInfoRule):
name = "capsnamespkg"
@@ -43,4 +44,12 @@ class LicenseRule(PkgInfoRule):
if "license" not in pkginfo or len(pkginfo["license"]) == 0:
self.errors.append(("missing-license", ()))
 
+class NonUniqueSourcesRule(PkgbuildRule):
+   name = "non-unique-source"
+   description = "Verifies the downloaded sources have a unique filename"
+   def analyze(self, pkginfo, tar):
+   for source_file in pkginfo["source"]:
+   if '::' not in source_file and 
re.match(r'^[vV]?(([0-9]){8}|([0-9]+\.?)+)\.', os.path.basename(source_file)):
+   self.warnings.append(("non-unique-source-name 
%s", os.path.basename(source_file)))
+
 # vim: set ts=4 sw=4 noet:
diff --git a/namcap-tags b/namcap-tags
index 2133c45..5c236db 100644
--- a/namcap-tags
+++ b/namcap-tags
@@ -61,6 +61,7 @@ missing-makedeps %s :: Split PKGBUILD needs additional 
makedepends %s to work pr
 no-elffiles-not-any-package :: No ELF files and not an "any" package
 non-fhs-info-page %s :: Non-FHS info page (%s) found. Use /usr/share/info 
instead
 non-fhs-man-page %s :: Non-FHS man page (%s) found. Use /usr/share/man instead
+non-unique-source-name %s :: Non-unique source name (%s). Use a unique 
filename.
 not-a-common-license %s :: %s is not a common license (it's not in 
/usr/share/licenses/common/)
 not-enough-checksums %s %i needed :: Not enough %s: %i needed
 package-name-in-uppercase :: No upper case letters in package names
-- 
2.19.1