Hello community, here is the log from the commit of package rpmlint for openSUSE:Factory checked in at Sun Aug 1 17:30:34 CEST 2010. -------- --- rpmlint/rpmlint.changes 2010-06-30 14:12:10.000000000 +0200 +++ /mounts/work_src_done/STABLE/rpmlint/rpmlint.changes 2010-07-29 18:26:04.000000000 +0200 @@ -1,0 +2,20 @@ +Thu Jul 29 18:25:47 CEST 2010 - dmueller@suse.de + +- fix printWarning error in CheckBashisms + +------------------------------------------------------------------- +Thu Jul 29 07:49:02 UTC 2010 - puzel@novell.com + +- add confusing-invalid-spec-name.patch + +------------------------------------------------------------------- +Tue Jul 20 09:12:08 UTC 2010 - guido+opensuse.org@berhoerster.name + +- add BashismsCheck + +------------------------------------------------------------------- +Mon Jul 12 11:05:58 CEST 2010 - dmueller@suse.de + +- add Development/Debug group (bnc#612044) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- BashismsCheck.py confusing-invalid-spec-name.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rpmlint.spec ++++++ --- /var/tmp/diff_new_pack.3SDFLD/_old 2010-08-01 17:29:47.000000000 +0200 +++ /var/tmp/diff_new_pack.3SDFLD/_new 2010-08-01 17:29:47.000000000 +0200 @@ -23,7 +23,7 @@ BuildRequires: rpm-python Summary: Rpm correctness checker Version: 0.95 -Release: 10 +Release: 14 Source0: %{name}-%{version}.tar.bz2 Source1: config Source1001: config.in @@ -46,6 +46,7 @@ Source18: CheckDBusPolicy.py Source19: CheckAlternativesGhostFiles.py Source20: rpmgroups.config +Source21: BashismsCheck.py Source100: syntax-validator.py Url: http://rpmlint.zarb.org/ License: GPLv2+ @@ -54,6 +55,7 @@ Requires: rpm-python, /usr/bin/readelf, file, findutils, cpio, bash Requires: desktop-file-utils Requires: python-magic +Requires: dash checkbashisms BuildArch: noarch Patch0: rpmlint-suse.diff Patch1: suse-checks.diff @@ -114,6 +116,7 @@ Patch73: avoid-mismatched-libregex.diff Patch74: filename-non-utf8-exception.diff Patch75: stricter-interpreter-check.diff +Patch76: confusing-invalid-spec-name.patch %py_requires %description @@ -187,6 +190,7 @@ %patch73 %patch74 %patch75 +%patch76 -p1 cp -p %{SOURCE1} . cp -p %{SOURCE2} . cp -p %{SOURCE3} . @@ -206,6 +210,7 @@ cp -p %{SOURCE17} . cp -p %{SOURCE18} . cp -p %{SOURCE19} . +cp -p %{SOURCE21} . %build make %{?_smp_mflags} ++++++ BashismsCheck.py ++++++ ############################################################################# # File : BashismsCheck.py # Package : rpmlint # Author : Guido Berhoerster # Purpose : check /bin/sh shell scripts for bashisms ############################################################################# import re import AbstractCheck import Config import Pkg from Filter import * class BashismsCheck(AbstractCheck.AbstractFilesCheck): RE_BIN_SH = re.compile('#!\s*(/usr)?/bin/sh(\s+|$)') def __init__(self): AbstractCheck.AbstractFilesCheck.__init__(self, "BashismsCheck", ".*") def check_file(self, pkg, filename): try: f = open(filename) except: return try: first_line = f.read(256).split("\n")[0] if self.RE_BIN_SH.match(first_line): status, output = Pkg.getstatusoutput(["dash", "-n", filename]) if status == 2: printWarning(pkg, "bin-sh-syntax-error", filename) status, output = Pkg.getstatusoutput(["checkbashisms", filename]) if status == 1: printInfo(pkg, "potential-bashisms", filename) finally: f.close() check = BashismsCheck() if Config.info: addDetails('bin-sh-syntax-error', '''A /bin/sh shell script contains a syntax error.''', 'potential-bashisms', '''checkbashisms reported potential bashisms in a /bin/sh shell script, you might want to manually check this script for bashisms.''') ++++++ config ++++++ --- /var/tmp/diff_new_pack.3SDFLD/_old 2010-08-01 17:29:48.000000000 +0200 +++ /var/tmp/diff_new_pack.3SDFLD/_new 2010-08-01 17:29:48.000000000 +0200 @@ -34,6 +34,7 @@ addCheck("CheckKDE4Deps") addCheck("KMPPolicyCheck") addCheck("CheckAlternativesGhostFiles") +addCheck("BashismsCheck") # stuff autobuild takes care about addFilter(".*invalid-version.*") ++++++ confusing-invalid-spec-name.patch ++++++ # Confusing message. The problem is not that the file does not end # with ".spec", but that there is a mismatch of specname and pkg name. Index: rpmlint-0.95/SpecCheck.py =================================================================== --- rpmlint-0.95.orig/SpecCheck.py 2010-07-29 09:29:28.000000000 +0200 +++ rpmlint-0.95/SpecCheck.py 2010-07-29 09:44:32.000000000 +0200 @@ -593,8 +593,8 @@ addDetails( SPEC file to build a valid RPM package.''', 'invalid-spec-name', -'''Your spec filename must end with '.spec'. If it's not the case, rename your -file and rebuild your package.''', +'''The spec file name (without the .spec suffix) must match the package name +("Name:" tag). Either rename your package or the specfile.''', 'non-utf8-spec-file', '''The character encoding of the spec file is not UTF-8. Convert it for ++++++ rpmgroups.config ++++++ --- /var/tmp/diff_new_pack.3SDFLD/_old 2010-08-01 17:29:48.000000000 +0200 +++ /var/tmp/diff_new_pack.3SDFLD/_new 2010-08-01 17:29:48.000000000 +0200 @@ -29,6 +29,7 @@ "Amusements/Toys/Graphics" ,\ "Amusements/Toys/Other" ,\ "Amusements/Toys/Screensavers" ,\ + "Development/Debug" ,\ "Development/Languages/C and C++" ,\ "Development/Languages/Fortran" ,\ "Development/Languages/Java" ,\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org