mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
remove dead.package logic which is not valid for CentOS packages
This commit is contained in:
parent
2eaea9fba3
commit
8f2a1accaa
1 changed files with 2 additions and 8 deletions
|
@ -38,8 +38,6 @@ class Commands(pyrpkg.Commands):
|
||||||
# We are not using the upstream load_spec because the file structure is
|
# We are not using the upstream load_spec because the file structure is
|
||||||
# hard-coded
|
# hard-coded
|
||||||
|
|
||||||
deadpackage = False
|
|
||||||
|
|
||||||
# Get a list of files in the path we're looking at
|
# Get a list of files in the path we're looking at
|
||||||
files = os.listdir(os.path.join(self.path,'SPECS'))
|
files = os.listdir(os.path.join(self.path,'SPECS'))
|
||||||
# Search the files for the first one that ends with ".spec"
|
# 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('.'):
|
if f.endswith('.spec') and not f.startswith('.'):
|
||||||
self._spec = os.path.join('SPECS',f)
|
self._spec = os.path.join('SPECS',f)
|
||||||
return
|
return
|
||||||
if f == 'dead.package':
|
|
||||||
deadpackage = True
|
raise pyrpkg.rpkgError('No spec file found.')
|
||||||
if deadpackage:
|
|
||||||
raise pyrpkg.rpkgError('No spec file found. This package is retired')
|
|
||||||
else:
|
|
||||||
raise pyrpkg.rpkgError('No spec file found.')
|
|
||||||
|
|
||||||
|
|
||||||
# These are the commands defined in the base pyrpkg.Commands class
|
# These are the commands defined in the base pyrpkg.Commands class
|
||||||
|
|
Loading…
Add table
Reference in a new issue