From 47eb7d659613e83aba7a54f32c8fcca13cb12bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 29 Jun 2005 12:07:58 +0000 Subject: [PATCH] =?UTF-8?q?-=20specfiletests'de=20verify=20da=20=C3=A7al?= =?UTF-8?q?=C4=B1=C5=9Ft=C4=B1r.=20-=20Summary=20tag'=C4=B1=20zorunlu=20po?= =?UTF-8?q?pt.pspec'e=20ekle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/popt/popt.pspec | 1 + tests/specfiletests.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/popt/popt.pspec b/samples/popt/popt.pspec index 27405bae..1f9e06b7 100644 --- a/samples/popt/popt.pspec +++ b/samples/popt/popt.pspec @@ -15,6 +15,7 @@ As-Is library:util:optparser rpm:archive + Popt command line option parser Command line option parsing library. While it is similiar to getopt(3), it contains a number of enhancements, including: diff --git a/tests/specfiletests.py b/tests/specfiletests.py index 80fd198b..134316fd 100644 --- a/tests/specfiletests.py +++ b/tests/specfiletests.py @@ -58,7 +58,9 @@ class SpecFileTestCase(unittest.TestCase): if "rpm:archive" != pkg.partof: self.fail("Failed to match PartOf in Package") - + def testVerify(self): + if not self.spec.verify(): + self.fail("Failed to verify specfile") def testCopy(self): util.check_dir(config.tmp_dir())