forked from pool/rpmlint
Accepting request 423925 from devel:openSUSE:Factory:rpmlint
1 OBS-URL: https://build.opensuse.org/request/show/423925 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=255
This commit is contained in:
commit
6f011d647a
@ -20,7 +20,7 @@ index c7fadab..62951d6 100644
|
||||
|
||||
+ if is_shell:
|
||||
+ count= 0
|
||||
+ for l in file(pkgfile.path, "r"):
|
||||
+ for l in open(pkgfile.path, "r"):
|
||||
+ count = count + 1
|
||||
+ if (l.find("This wrapper script should never be moved out of the build directory") != -1):
|
||||
+ printError(pkg, 'libtool-wrapper-in-package', fname)
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 19 20:50:32 UTC 2016 - stefan.bruens@rwth-aachen.de
|
||||
|
||||
- Update some checks to work on both Python 2 and 3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 25 14:27:42 UTC 2016 - lnussel@suse.de
|
||||
|
||||
|
@ -16,7 +16,7 @@ index ee5039c..4a698cd 100644
|
||||
elif interpreter or mode_is_exec or script_regex.search(f):
|
||||
if interpreter:
|
||||
- if not interpreter_regex.search(interpreter):
|
||||
+ if mode & 0111 != 0 and not interpreter_regex.search(interpreter):
|
||||
+ if mode & 0o111 != 0 and not interpreter_regex.search(interpreter):
|
||||
printError(pkg, 'wrong-script-interpreter',
|
||||
f, interpreter)
|
||||
elif not nonexec_file and not \
|
||||
|
@ -28,9 +28,9 @@ index f9b13a1..f81a450 100644
|
||||
initscript_list = []
|
||||
+
|
||||
+ # check chkconfig call in %post and %preun
|
||||
+ postin = Pkg.b2s(pkg[rpm.RPMTAG_POSTIN]) or pkg.scriptprog(rpm.RPMTAG_POSTINPROG)
|
||||
+ preun = Pkg.b2s(pkg[rpm.RPMTAG_PREUN]) or pkg.scriptprog(rpm.RPMTAG_PREUNPROG)
|
||||
+ postun = Pkg.b2s(pkg[rpm.RPMTAG_POSTUN]) or pkg.scriptprog(rpm.RPMTAG_POSTUNPROG)
|
||||
+ postin = pkg[rpm.RPMTAG_POSTIN] or pkg.scriptprog(rpm.RPMTAG_POSTINPROG)
|
||||
+ preun = pkg[rpm.RPMTAG_PREUN] or pkg.scriptprog(rpm.RPMTAG_PREUNPROG)
|
||||
+ postun = pkg[rpm.RPMTAG_POSTUN] or pkg.scriptprog(rpm.RPMTAG_POSTUNPROG)
|
||||
+
|
||||
for fname, pkgfile in pkg.files().items():
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user