forked from pool/rpmlint
10a26d790a
Accepted submit request 67998 from user coolo OBS-URL: https://build.opensuse.org/request/show/67998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=101
29 lines
998 B
Diff
29 lines
998 B
Diff
From c7aa88a93128892705322c564e849ca2a6a74b5b Mon Sep 17 00:00:00 2001
|
|
From: scop <scop@9bc8b190-ac0f-0410-8968-dc7d1f502856>
|
|
Date: Thu, 10 Mar 2011 17:29:42 +0000
|
|
Subject: [PATCH] Don't overwrite already existing details (Ludwig Nussel).
|
|
|
|
This allows the distro config to provide alternative descriptions and
|
|
distro specific explanations without having to patch checks.
|
|
|
|
|
|
git-svn-id: http://rpmlint.zarb.org/svn/trunk@1845 9bc8b190-ac0f-0410-8968-dc7d1f502856
|
|
---
|
|
Filter.py | 3 ++-
|
|
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
|
Index: rpmlint-1.1/Filter.py
|
|
===================================================================
|
|
--- rpmlint-1.1.orig/Filter.py
|
|
+++ rpmlint-1.1/Filter.py
|
|
@@ -115,7 +115,8 @@ _details = {}
|
|
|
|
def addDetails(*details):
|
|
for idx in range(len(details)/2):
|
|
- _details[details[idx*2]] = details[idx*2+1]
|
|
+ if not details[idx*2] in _details:
|
|
+ _details[details[idx*2]] = details[idx*2+1]
|
|
|
|
def badnessScore():
|
|
global _badness_score
|