@@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
-
+
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
-
+
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
-
+
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
-
+
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
-
+
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - __init__
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from . import util, rules
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-#
+#
# namcap rules - depends
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks dependencies semi-smartly."""
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-#
+#
# namcap rules - package info structure
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os
import sys
@@ -2,7 +2,7 @@
#
# namcap - Class hierarchy for rules
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-#
+#
"""
This module defines the base classes from which Namcap rules are derived
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - __init__
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from types import ModuleType
import Namcap.ruleclass
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - array
# Copyright (C) 2003-2009 Jesse Young <jesseyoung@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Verifies that array variables are actually arrays"""
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - badbackups
# Copyright (C) 2004-2009 Ben Mazer <ben@benmazer.net>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks for bad backup entries"""
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - carch
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Verifies that no specific host type is used"""
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - emptydir
# Copyright (C) 2004-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - externalhooks
# Copyright (C) 2016 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - extravars
# Copyright (C) 2003-2009 Jesse Young <jesseyoung@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from itertools import product
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - fhs
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os, re
from Namcap.ruleclass import *
@@ -2,7 +2,7 @@
#
# namcap rules - filenames
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks for invalid filenames."""
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - fileownership
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - gnomemime
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -25,15 +25,15 @@ class package(TarballRule):
def analyze(self, pkginfo, tar):
mime_files = [
'usr/share/applications/mimeinfo.cache',
- 'usr/share/mime/XMLnamespaces',
- 'usr/share/mime/aliases',
- 'usr/share/mime/globs',
- 'usr/share/mime/magic',
+ 'usr/share/mime/XMLnamespaces',
+ 'usr/share/mime/aliases',
+ 'usr/share/mime/globs',
+ 'usr/share/mime/magic',
'usr/share/mime/subclasses'
]
for i in tar.getnames():
if i in mime_files:
self.errors.append(("gnome-mime-file %s", i))
-
+
# vim: set ts=4 sw=4 noet:
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - hardlinks
# Copyright (C) 2011 Dan McGee <dan@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from os.path import dirname
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - invalidstartdir
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import re
from Namcap.ruleclass import *
@@ -2,7 +2,7 @@
#
# namcap rules - kdeprograms
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
import Namcap.depends
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - libtool
# Copyright (C) 2005-2009 Simo Leone <simo@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import re
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - licensepkg
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os.path
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - lotsofdocs
# Copyright (C) 2009 Dan McGee <dan@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - makepkgfunctions
# Copyright (C) 2017 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import re
from Namcap.ruleclass import *
@@ -1,8 +1,8 @@
-#
+#
# namcap rules - mimefiles
# Copyright (C) 2009 Hugo Doria <hugo@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - missingbackups
# Copyright (C) 2011 Dan McGee <dan@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -3,7 +3,7 @@
# namcap rules - missingvars
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks for missing variables in PKGBUILD"""
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - pathdepends
# Copyright (C) 2016 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""
This contains a collection of essentially one-line rules:
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - perllocal
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - permissions
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import stat
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - package variables
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"These rules checks basic sanity of package metadata"
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - pkgname
# Copyright (C) 2009 Hugo Doria <hugo@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - scrollkeeper
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import re
from Namcap.ruleclass import *
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - sfurl
# Copyright (C) 2004-2009 Ben Mazer <ben@benmazer.net>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import re
from Namcap.ruleclass import *
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-#
+#
# namcap rules - shebangdepends
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks dependencies on programs specified in shebangs."""
@@ -3,7 +3,7 @@
# namcap rules - sodepends
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"""Checks dependencies resulting from linking of shared libraries."""
@@ -113,7 +113,7 @@ def finddepends(liblist):
return dependlist, orphans
def filllibcache():
- var = subprocess.Popen('ldconfig -p',
+ var = subprocess.Popen('ldconfig -p',
env = {"LANG": "C"},
shell=True,
stdout=subprocess.PIPE,
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - split package checks
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
"This module contains rules that check coherence of split PKGBUILDs."
@@ -1,7 +1,7 @@
-#
+#
# namcap rules - symlink
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os
from Namcap.ruleclass import *
from Namcap.package import load_from_db
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-#
+#
# namcap - tags
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
# Copyright (c) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-#
+#
import os
@@ -2,7 +2,7 @@
#
# namcap tests - makepkg launcher
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
import tempfile
@@ -2,7 +2,7 @@
#
# namcap tests - anyelf rule
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - elffiles
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - non ascii filenames
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -1,7 +1,7 @@
-#
+#
# namcap tests - externalhooks rule
# Copyright (C) 2016 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -83,5 +83,5 @@ post_install() {
self.assertEqual(r.errors, [])
self.assertEqual(r.warnings, [])
self.assertEqual(r.infos, [])
-
+
# vim: set ts=4 sw=4 noet:
@@ -2,7 +2,7 @@
#
# namcap tests - non ascii filenames
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - non ascii filenames
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - fileownership
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - gnomemime
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - cross-directory hard links
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - hicoloricons
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - infodirectory
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - kdeprograms
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
import unittest
@@ -2,7 +2,7 @@
#
# namcap tests - libtool
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - licensepkg
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - lotsofdocs
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -1,7 +1,7 @@
#
# namcap tests - mimefiles
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - missingbackups
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
# namcap tests - glibfiles
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
# Copyright (C) 2016 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - perllocal
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - permissions
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - rpath
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - scrollkeeper
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -1,6 +1,6 @@
# namcap tests - shebangdepends
# Copyright (C) 2016 Kyle Keen <keenerd@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - sodepends
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -2,7 +2,7 @@
#
# namcap tests - symlink
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.makepkg import MakepkgTest
@@ -2,7 +2,7 @@
#
# namcap tests - arrays
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules
@@ -2,7 +2,7 @@
#
# namcap tests - badbackups
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.badbackups as module
@@ -2,7 +2,7 @@
#
# namcap tests - carch
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.carch as module
@@ -2,7 +2,7 @@
#
# namcap tests - extravars
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
from Namcap.tests.pkgbuild_test import PkgbuildTest
@@ -2,7 +2,7 @@
#
# namcap tests - invalidstartdir
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.invalidstartdir as module
@@ -2,7 +2,7 @@
#
# namcap tests - missingvars
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
from Namcap.rules.missingvars import *
@@ -2,7 +2,7 @@
#
# namcap tests - pkginfo
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
from Namcap.rules.pkginfo import *
@@ -2,7 +2,7 @@
#
# namcap tests - pkgnameindesc
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.pkgnameindesc as module
@@ -2,7 +2,7 @@
#
# namcap tests - sfurl
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.sfurl as module
@@ -2,7 +2,7 @@
#
# namcap tests - sfurl
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
from Namcap.tests.pkgbuild_test import PkgbuildTest
import Namcap.rules.splitpkgbuild as module
@@ -2,7 +2,7 @@
#
# namcap tests - pkgbuild rule testing template
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import os
import unittest
@@ -2,7 +2,7 @@
#
# namcap tests - tests for the depends module
# Copyright (C) 2011 Rémy Oudompheng <remy@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-#
+#
import unittest
import Namcap.depends
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
-#
+#
# namcap - version
# Copyright (c) 2015 Rikard Falkeborn <rikard.falkeborn@gmail.com>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-#
+#
def get_version():
return '3.2.8'
@@ -2,27 +2,27 @@
WHAT IS IT?
-----------------------------
-Namcap is a tool for pacman checking binary packages and source PKGBUILDs for
+Namcap is a tool for pacman checking binary packages and source PKGBUILDs for
common packaging errors.
HOW CAN I HELP?
-----------------------------
-There are several ways that you can contribute and help namcap's development.
+There are several ways that you can contribute and help namcap's development.
You can contribute with code, patches, tests, bugs and feature requests.
-To report a bug or a feature request for namcap, file a bug in the
-Packages:Extra section of the Arch Linux bugtracker and the set the importance
-accordingly. If you're reporting a bug, please give concrete examples of
+To report a bug or a feature request for namcap, file a bug in the
+Packages:Extra section of the Arch Linux bugtracker and the set the importance
+accordingly. If you're reporting a bug, please give concrete examples of
packages where the problem occurs.
Minimal examples (very simple packages forged to exhibit unexpected
behaviour from namcap) are also welcome to extend namcap's test suite.
-If you've a patch (fixing a bug or a new namcap module), then you can send it
+If you've a patch (fixing a bug or a new namcap module), then you can send it
to the arch-projects mailing list. Namcap development is managed with git, so
-git-formatted patches are preferred.
+git-formatted patches are preferred.
Namcap's source is available on:
@@ -36,48 +36,48 @@ To run namcap on a PKGBUILD or a binary pkg.tar.xz:
$ namcap FILENAME
-If you want to see extra informational messages, then invoke namcap with
+If you want to see extra informational messages, then invoke namcap with
the -i flag:
$ namcap -i FILENAME
-You can also see the namcap(1) manual by typing man namcap at the command line
+You can also see the namcap(1) manual by typing man namcap at the command line
or see the usage help:
-$ namcap -h
+$ namcap -h
UNDERSTANDING THE OUTPUT
-----------------------------
-Namcap uses a system of tags to classify the output. Currently, tags are of
-three types, errors (denoted by E), warnings (denoted by W) and informational
-(denoted by I).
+Namcap uses a system of tags to classify the output. Currently, tags are of
+three types, errors (denoted by E), warnings (denoted by W) and informational
+(denoted by I).
-An error is important and should be fixed immediately; mostly they relate to
+An error is important and should be fixed immediately; mostly they relate to
insufficient security, missing licenses or permission problems.
-Normally namcap prints a human-readable explanation (sometimes with suggestions
-on how to fix the problem). If you want output which can be easily parsed by a
-program, then pass the -m (machine-readable) flag to namcap.
+Normally namcap prints a human-readable explanation (sometimes with suggestions
+on how to fix the problem). If you want output which can be easily parsed by a
+program, then pass the -m (machine-readable) flag to namcap.
HOW IT WORKS
-----------------------------
-Namcap takes the package name (or a PKGBUILD) as an argument that runs through
-all the rules defined in Namcap.rules submodules and tests them against the argument
+Namcap takes the package name (or a PKGBUILD) as an argument that runs through
+all the rules defined in Namcap.rules submodules and tests them against the argument
looking for flaws.
HOW TO CREATE A MODULE
-----------------------------
-This section documents the innards of namcap and specifies how to create a new
+This section documents the innards of namcap and specifies how to create a new
namcap rule.
-The main namcap program namcap.py takes as parameters the filename of a package
-or a PKGBUILD and makes a pkginfo object, which it passes to a list of rules
+The main namcap program namcap.py takes as parameters the filename of a package
+or a PKGBUILD and makes a pkginfo object, which it passes to a list of rules
defined in Namcap.rules.all_rules :
* a rule is a subclass of AbstractRule (defined in Namcap.ruleclass)
@@ -104,25 +104,25 @@ attributes that each namcap rule must have:
* base class
Either PkgInfoRull, PkgbuildRule, TarballRule.
-
+
* name
Contains a string containing a short name of the module. Usually, this
is the same as the basename of the module file.
-
+
* description
- A string containing a concise description of the module. This
+ A string containing a concise description of the module. This
description is used when listing all the rules using namcap -r list.
-
- * analyze(self, pkginfo, tar)
+
+ * analyze(self, pkginfo, tar)
Should fill three lists self.errors, self.warnings and self.infos
- with error tags, warning tags and information tags respectively.
- Each member of these tag lists should be a tuple consisting of two
- components: the short, hyphenated form of the tag with the appropriate
- format specifiers (%s, etc.) The first word of this string must be the tag
+ with error tags, warning tags and information tags respectively.
+ Each member of these tag lists should be a tuple consisting of two
+ components: the short, hyphenated form of the tag with the appropriate
+ format specifiers (%s, etc.) The first word of this string must be the tag
name. The human readable form of the tag should be put in the namcap-tags
file. The format of the tags file is described below; and the parameters
- which should replace the format specifier tokens in the final output.
-
+ which should replace the format specifier tokens in the final output.
+
The namcap-tags file consists of lines specifying the human readable form of
the hyphenated tags used in the namcap code. A line beginning with a '#' is
@@ -130,7 +130,7 @@ treated as a comment. Otherwise the format of the file is:
machine-parseable-tag %s :: This is machine parseable tag %s
-Note that a double colon (::) is used to separate the hyphenated tag from the
+Note that a double colon (::) is used to separate the hyphenated tag from the
human readable description.
HOW TO TEST A RULE
@@ -1,11 +1,11 @@
# namcap tags file
-# The tags file consists of lines specifying the human readable form of the
-# hyphenated tags used in the namcap code. A line beginning with a '#' is
+# The tags file consists of lines specifying the human readable form of the
+# hyphenated tags used in the namcap code. A line beginning with a '#' is
# treated as a comment. Otherwise the format of the file is:
#
# machine-parseable-tag %s :: This is machine parseable tag %s
#
-# Note that a double colon (::) is used to separate the hyphenated tag from the
+# Note that a double colon (::) is used to separate the hyphenated tag from the
# human readable description.
# rules tags
@@ -1,8 +1,8 @@
#! /usr/bin/env python3
-#
+#
# namcap - A Pacman package analyzer
# Copyright (C) 2003-2009 Jason Chu <jason@archlinux.org>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-#
+#
import getopt
import os
@@ -61,15 +61,15 @@ def open_package(filename):
return None
return tar
-def check_rules_exclude(optlist):
+def check_rules_exclude(optlist):
'''Check if the -r (--rules) and the -r (--exclude) options
are being used at same time'''
args_used = 0
- for i in optlist:
+ for i in optlist:
if '-r' in i or '-e' in i:
args_used += 1
if '--rules' in i or '--exclude' in i:
- args_used += 1
+ args_used += 1
return args_used
def show_messages(name, key, messages):
@@ -105,7 +105,7 @@ def process_realpackage(package, modules):
show_messages(pkginfo["name"], 'W', rule.warnings)
if info_reporting:
show_messages(pkginfo["name"], 'I', rule.infos)
-
+
# dependency analysis
errs, warns, infos = Namcap.depends.analyze_depends(pkginfo)
show_messages(pkginfo["name"], 'E', errs)
Done by: $ find . -not \( -name .git -prune \) -type f -print0 | xargs -0 sed -i -E "s/[[:space:]]*$//" And manually reviewed. Signed-off-by: James P. Harvey <jamespharvey20@gmail.com> --- COPYING | 10 +-- Namcap/__init__.py | 6 +- Namcap/depends.py | 6 +- Namcap/package.py | 6 +- Namcap/ruleclass.py | 4 +- Namcap/rules/__init__.py | 6 +- Namcap/rules/arrays.py | 6 +- Namcap/rules/badbackups.py | 6 +- Namcap/rules/carch.py | 6 +- Namcap/rules/emptydir.py | 6 +- Namcap/rules/externalhooks.py | 6 +- Namcap/rules/extravars.py | 6 +- Namcap/rules/fhs.py | 6 +- Namcap/rules/filenames.py | 4 +- Namcap/rules/fileownership.py | 6 +- Namcap/rules/gnomemime.py | 16 ++--- Namcap/rules/hardlinks.py | 6 +- Namcap/rules/invalidstartdir.py | 6 +- Namcap/rules/kdeprograms.py | 4 +- Namcap/rules/libtool.py | 6 +- Namcap/rules/licensepkg.py | 6 +- Namcap/rules/lotsofdocs.py | 6 +- Namcap/rules/makepkgfunctions.py | 6 +- Namcap/rules/mimefiles.py | 6 +- Namcap/rules/missingbackups.py | 6 +- Namcap/rules/missingvars.py | 4 +- Namcap/rules/pathdepends.py | 6 +- Namcap/rules/perllocal.py | 6 +- Namcap/rules/permissions.py | 6 +- Namcap/rules/pkginfo.py | 6 +- Namcap/rules/pkgnameindesc.py | 4 +- Namcap/rules/scrollkeeper.py | 6 +- Namcap/rules/sfurl.py | 6 +- Namcap/rules/shebangdepends.py | 6 +- Namcap/rules/sodepends.py | 6 +- Namcap/rules/splitpkgbuild.py | 6 +- Namcap/rules/symlink.py | 6 +- Namcap/tags.py | 6 +- Namcap/tests/makepkg.py | 4 +- Namcap/tests/package/test_anyelf.py | 4 +- Namcap/tests/package/test_elffiles.py | 4 +- Namcap/tests/package/test_emptydirs.py | 4 +- Namcap/tests/package/test_externalhooks.py | 8 +-- Namcap/tests/package/test_fhs.py | 4 +- Namcap/tests/package/test_filenames.py | 4 +- Namcap/tests/package/test_fileownership.py | 4 +- Namcap/tests/package/test_gnomemime.py | 4 +- Namcap/tests/package/test_hardlinks.py | 4 +- Namcap/tests/package/test_hicoloricons.py | 4 +- Namcap/tests/package/test_infodirectory.py | 4 +- Namcap/tests/package/test_kdeprograms.py | 4 +- Namcap/tests/package/test_libtool.py | 4 +- Namcap/tests/package/test_licensepkg.py | 4 +- Namcap/tests/package/test_lotsofdocs.py | 4 +- Namcap/tests/package/test_mimefiles.py | 4 +- Namcap/tests/package/test_missingbackups.py | 4 +- Namcap/tests/package/test_pathdepends.py | 4 +- Namcap/tests/package/test_perllocal.py | 4 +- Namcap/tests/package/test_permissions.py | 4 +- Namcap/tests/package/test_rpath.py | 4 +- Namcap/tests/package/test_scrollkeeper.py | 4 +- Namcap/tests/package/test_shebangdepends.py | 4 +- Namcap/tests/package/test_sodepends.py | 2 +- Namcap/tests/package/test_symlink.py | 4 +- Namcap/tests/pkgbuild/test_arrays.py | 4 +- Namcap/tests/pkgbuild/test_badbackups.py | 4 +- Namcap/tests/pkgbuild/test_carch.py | 4 +- Namcap/tests/pkgbuild/test_extravars.py | 4 +- Namcap/tests/pkgbuild/test_invalidstartdir.py | 4 +- Namcap/tests/pkgbuild/test_missingvars.py | 4 +- Namcap/tests/pkgbuild/test_pkginfo.py | 4 +- Namcap/tests/pkgbuild/test_pkgnameindesc.py | 4 +- Namcap/tests/pkgbuild/test_sfurl.py | 4 +- Namcap/tests/pkgbuild/test_splitpkgbuild.py | 4 +- Namcap/tests/pkgbuild_test.py | 4 +- Namcap/tests/test_depends.py | 4 +- Namcap/version.py | 6 +- README | 68 +++++++++---------- namcap-tags | 6 +- namcap.py | 14 ++-- 80 files changed, 240 insertions(+), 240 deletions(-)