SHA256
1
0
forked from pool/rpmlint

Accepting request 344706 from devel:openSUSE:Factory:rpmlint

- Update to version 13.2+git20151113.ff9879a:
  + adjust for tmpfiles fix

- fix TmpFilesCheck not finding pattern in the full script
  (fix-TmpFilesCheck-pattern-match.diff)

OBS-URL: https://build.opensuse.org/request/show/344706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=243
This commit is contained in:
Stephan Kulow 2015-11-24 21:32:35 +00:00 committed by Git OBS Bridge
commit e75cb58cc6
10 changed files with 59 additions and 18 deletions

View File

@ -1,3 +1,10 @@
= rpmlint =
The patches for rpmlint can be managed in git. That is especially
useful when rebasing to a new rpmlint version. Read update_git.sh
= rpmlint-checks, rpmlint-tests =
The files from rpmlint-checks and rpmlint-tests managed in git. If The files from rpmlint-checks and rpmlint-tests managed in git. If
you need to make changes, you have the following options: you need to make changes, you have the following options:
* Make them in git and update the package from git (you can file * Make them in git and update the package from git (you can file

View File

@ -1,6 +1,6 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">http://github.com/openSUSE/rpmlint-tests.git</param> <param name="url">http://github.com/openSUSE/rpmlint-tests.git</param>
<param name="changesrevision">e8d62606360ce2fdd5c8e19bb83d21c04ef3c883</param></service><service name="tar_scm"> <param name="changesrevision">ff9879acb697f55844553e6865366fc6d029b546</param></service><service name="tar_scm">
<param name="url">http://github.com/openSUSE/rpmlint-checks.git</param> <param name="url">http://github.com/openSUSE/rpmlint-checks.git</param>
<param name="changesrevision">d0808a2802827878acce9ea1e7a1c6226ac79f95</param></service></servicedata> <param name="changesrevision">d0808a2802827878acce9ea1e7a1c6226ac79f95</param></service></servicedata>

View File

@ -0,0 +1,24 @@
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Fri, 13 Nov 2015 12:56:25 +0100
Subject: [PATCH] fix TmpFilesCheck pattern match
need to use search() instead of match() find the systemd-tmpfiles call
---
TmpFilesCheck.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/TmpFilesCheck.py b/TmpFilesCheck.py
index 06be7bb..d1ef824 100644
--- a/TmpFilesCheck.py
+++ b/TmpFilesCheck.py
@@ -43,8 +43,8 @@ class TmpFilesCheck(AbstractCheck.AbstractCheck):
continue
pattern = re.compile(r'systemd-tmpfiles --create .*%s'%re.escape(fn))
- if (not postin or not pattern.match(postin)) and \
- (not prein or not pattern.match(prein)):
+ if (not postin or not pattern.search(postin)) and \
+ (not prein or not pattern.search(prein)):
printWarning(pkg,
'postin-without-tmpfile-creation', fn)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f267f24a614b7cb16572065ed2d5f7544056ca0f53ce1cacdb36d30d87be276f
size 10684

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9327ab554812bd6c50cb322ca7c314fa488a7ca19c67bc2a052b48f14ab9b2b
size 10688

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 13 12:27:11 UTC 2015 - lnussel@suse.de
- Update to version 13.2+git20151113.ff9879a:
+ adjust for tmpfiles fix
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 10 12:39:01 UTC 2015 - lnussel@suse.de Tue Nov 10 12:39:01 UTC 2015 - lnussel@suse.de

View File

@ -22,7 +22,7 @@
BuildRequires: rpmlint-mini BuildRequires: rpmlint-mini
Name: rpmlint-tests Name: rpmlint-tests
Version: 13.2+git20151110.e8d6260 Version: 13.2+git20151113.ff9879a
Release: 0 Release: 0
Summary: rpmlint regression tests Summary: rpmlint regression tests
License: SUSE-Public-Domain License: SUSE-Public-Domain

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 13 12:24:38 UTC 2015 - lnussel@suse.de
- fix TmpFilesCheck not finding pattern in the full script
(fix-TmpFilesCheck-pattern-match.diff)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 9 12:40:53 UTC 2015 - krahmer@suse.com Mon Nov 9 12:40:53 UTC 2015 - krahmer@suse.com

View File

@ -110,8 +110,9 @@ Patch51: add-check-for-tmpfiles-created-at-r.diff
Patch52: fix-ghost-file-handling.diff Patch52: fix-ghost-file-handling.diff
Patch53: remove-files-attr-not-set-check.diff Patch53: remove-files-attr-not-set-check.diff
Patch54: move-ghost-file-check-to-TmpFilesCh.diff Patch54: move-ghost-file-check-to-TmpFilesCh.diff
Patch55: fix-TmpFilesCheck-pattern-match.diff
# PATCHLIST END # PATCHLIST END
# BuildArch must at the and. is a bug: https://bugzilla.suse.com/show_bug.cgi?id=926766 # BuildArch must at the end. is a bug: https://bugzilla.suse.com/show_bug.cgi?id=926766
BuildArch: noarch BuildArch: noarch
%py_requires %py_requires

View File

@ -30,6 +30,8 @@ trap cleanup EXIT
GIT_DIR=`mktemp -d --tmpdir update_git.XXXXXXXXXX` GIT_DIR=`mktemp -d --tmpdir update_git.XXXXXXXXXX`
CMP_DIR=`mktemp -d --tmpdir update_git.XXXXXXXXXX` CMP_DIR=`mktemp -d --tmpdir update_git.XXXXXXXXXX`
rm -f .update_git.*
if [ -d "$GIT_LOCAL_TREE" ]; then if [ -d "$GIT_LOCAL_TREE" ]; then
echo "Processing $GIT_BRANCH branch of local git tree, using tag:" \ echo "Processing $GIT_BRANCH branch of local git tree, using tag:" \
"$GIT_UPSTREAM_TAG" "$GIT_UPSTREAM_TAG"
@ -87,7 +89,7 @@ for i in $CMP_DIR/*.tmp; do
else else
mv "$CMP_DIR/$newname" "$localname" mv "$CMP_DIR/$newname" "$localname"
let ADDED_COUNT+=1 let ADDED_COUNT+=1
echo " $localname" >> qemu.changes.added echo " $localname" >> .update_git.changes.added
osc add "$localname" osc add "$localname"
fi fi
done done
@ -104,7 +106,7 @@ for patch in *.diff; do
if [ -z "$keep" ]; then if [ -z "$keep" ]; then
osc rm --force $patch osc rm --force $patch
let DELETED_COUNT+=1 let DELETED_COUNT+=1
echo " $patch" >> qemu.changes.deleted echo " $patch" >> .update_git.changes.deleted
fi fi
done done
@ -128,25 +130,20 @@ for package in rpmlint; do
done < $package.spec > $package.spec.new done < $package.spec > $package.spec.new
mv $package.spec.new $package.spec mv $package.spec.new $package.spec
if [ -e qemu.changes.deleted ]; then if [ -e .update_git.changes.deleted ]; then
echo "* Patches dropped:" >> $package.changes.proposed echo "* Patches dropped:" >> $package.changes.proposed
cat qemu.changes.deleted >> $package.changes.proposed cat .update_git.changes.deleted >> $package.changes.proposed
fi fi
if [ -e qemu.changes.added ]; then if [ -e .update_git.changes.added ]; then
echo "* Patches added:" >> $package.changes.proposed echo "* Patches added:" >> $package.changes.proposed
cat qemu.changes.added >> $package.changes.proposed cat .update_git.changes.added >> $package.changes.proposed
fi fi
if [ -e $package.changes.proposed ]; then if [ -e $package.changes.proposed ]; then
osc vc --file=$package.changes.proposed $package osc vc --file=$package.changes.proposed $package
rm -f $package.changes.proposed rm -f $package.changes.proposed
fi fi
done done
if [ -e qemu.changes.deleted ]; then rm -f .update_git.*
rm -f qemu.changes.deleted
fi
if [ -e qemu.changes.added ]; then
rm -f qemu.changes.added
fi
echo "git patch summary" echo "git patch summary"
echo " unchanged: $UNCHANGED_COUNT" echo " unchanged: $UNCHANGED_COUNT"
echo " changed: $CHANGED_COUNT" echo " changed: $CHANGED_COUNT"