From 8f2a1accaa8c7897a05648e3beeca5252fc34cc9 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jun 18 2014 01:51:02 +0000 Subject: remove dead.package logic which is not valid for CentOS packages --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index a993e2b..f023d62 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -38,8 +38,6 @@ class Commands(pyrpkg.Commands): # We are not using the upstream load_spec because the file structure is # hard-coded - deadpackage = False - # Get a list of files in the path we're looking at files = os.listdir(os.path.join(self.path,'SPECS')) # Search the files for the first one that ends with ".spec" @@ -47,12 +45,8 @@ class Commands(pyrpkg.Commands): if f.endswith('.spec') and not f.startswith('.'): self._spec = os.path.join('SPECS',f) return - if f == 'dead.package': - deadpackage = True - if deadpackage: - raise pyrpkg.rpkgError('No spec file found. This package is retired') - else: - raise pyrpkg.rpkgError('No spec file found.') + + raise pyrpkg.rpkgError('No spec file found.') # These are the commands defined in the base pyrpkg.Commands class