mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
lint fixes
This commit is contained in:
parent
a86b09d261
commit
6e343c0de4
1 changed files with 9 additions and 31 deletions
|
@ -1,8 +1,9 @@
|
|||
#pylint: disable=line-too-long,abstract-class-not-used
|
||||
# pylint: disable=line-too-long,abstract-class-not-used
|
||||
|
||||
'''
|
||||
Top level function library for centpkg
|
||||
'''
|
||||
#
|
||||
|
||||
# Author(s):
|
||||
# Jesse Keating <jkeating@redhat.com>
|
||||
# Pat Riehecky <riehecky@fnal.gov>
|
||||
|
@ -15,17 +16,12 @@
|
|||
# the full text of the license.
|
||||
|
||||
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from pyrpkg import Commands, rpkgError
|
||||
from pyrpkg.layout import SRPMLayout, DistGitLayout
|
||||
from .lookaside import StreamLookasideCache,SIGLookasideCache
|
||||
from .lookaside import StreamLookasideCache, SIGLookasideCache
|
||||
from pyrpkg.utils import cached_property
|
||||
from . import cli
|
||||
|
||||
|
||||
class DistGitDirectory(object):
|
||||
|
@ -75,13 +71,12 @@ class DistGitDirectory(object):
|
|||
releaseorcommon = self.releasename
|
||||
|
||||
if self.distrobranch:
|
||||
if self.centosversion not in ('6','7'):
|
||||
if self.centosversion not in ('6', '7'):
|
||||
return 'c{}s-candidate'.format(self.centosversion)
|
||||
else:
|
||||
return '-'.join(filter(None, ['c'+self.centosversion,
|
||||
projectorcommon]))
|
||||
|
||||
|
||||
if not releaseorcommon:
|
||||
if not projectorcommon or projectorcommon == 'common':
|
||||
projectorcommon = 'common'
|
||||
|
@ -115,10 +110,10 @@ class Commands(Commands):
|
|||
)
|
||||
else:
|
||||
return SIGLookasideCache(self.lookasidehash,
|
||||
self.lookaside,
|
||||
self.lookaside_cgi,
|
||||
self.repo_name,
|
||||
self.branch_merge)
|
||||
self.lookaside,
|
||||
self.lookaside_cgi,
|
||||
self.repo_name,
|
||||
self.branch_merge)
|
||||
|
||||
# redefined loaders
|
||||
def load_rpmdefines(self):
|
||||
|
@ -147,20 +142,3 @@ class Commands(Commands):
|
|||
""" This sets the target attribute (used for mock and koji) """
|
||||
|
||||
self._target = self.distgitdir.target
|
||||
|
||||
def upload(self, *args, **kwargs):
|
||||
if not self.distgitdir.distrobranch:
|
||||
self.source_entry_type = 'bsd'
|
||||
return super(Commands, self).upload(*args, **kwargs)
|
||||
|
||||
def import_srpm(self, *args, **kwargs):
|
||||
raise NotImplementedError("import_srpm is not yet implemented in centpkg")
|
||||
|
||||
def patch(self, *args, **kwargs):
|
||||
raise NotImplementedError("patch is not yet implemented in centpkg")
|
||||
|
||||
def install(self, *args, **kwargs):
|
||||
raise NotImplementedError("install is not yet implemented in centpkg")
|
||||
|
||||
def lint(self, *args, **kwargs):
|
||||
raise NotImplementedError("lint is not yet implemented in centpkg")
|
||||
|
|
Loading…
Add table
Reference in a new issue