drop remnants
This commit is contained in:
parent
fdc64a012f
commit
4ce8fa9ddd
42
debian/bin/gencontrol.py
vendored
42
debian/bin/gencontrol.py
vendored
@ -33,9 +33,6 @@ locale.setlocale(locale.LC_CTYPE, "C.UTF-8")
|
||||
|
||||
|
||||
class Gencontrol(Base):
|
||||
env_flags = [
|
||||
]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config_dirs=[
|
||||
@ -51,17 +48,6 @@ class Gencontrol(Base):
|
||||
self.config_dirs = config_dirs
|
||||
self.process_changelog()
|
||||
|
||||
for env, attr, desc in self.env_flags:
|
||||
setattr(self, attr, False)
|
||||
if os.getenv(env):
|
||||
if self.changelog[0].distribution == 'UNRELEASED':
|
||||
import warnings
|
||||
warnings.warn(f'Disable {desc} on request ({env} set)')
|
||||
setattr(self, attr, True)
|
||||
else:
|
||||
raise RuntimeError(
|
||||
f'Unable to disable {desc} in release build ({env} set)')
|
||||
|
||||
def _setup_makeflags(self, names, makeflags, data) -> None:
|
||||
for src, dst, optional in names:
|
||||
if src in data or not optional:
|
||||
@ -109,15 +95,8 @@ class Gencontrol(Base):
|
||||
) -> None:
|
||||
self.bundle.add('main', (), makeflags, vars)
|
||||
|
||||
# Only build the metapackages if their names won't exactly match
|
||||
# the packages they depend on
|
||||
do_meta = config.packages.meta \
|
||||
and vars['source_suffix'] != '-' + vars['version']
|
||||
|
||||
if config.packages.source:
|
||||
self.bundle.add('sourcebin', (), makeflags, vars)
|
||||
if do_meta:
|
||||
self.bundle.add('sourcebin.meta', (), makeflags, vars)
|
||||
|
||||
if config.packages.libc_dev:
|
||||
libcdev_kernelarches = set()
|
||||
@ -403,27 +382,6 @@ class Gencontrol(Base):
|
||||
self.vars['source_suffix'] = \
|
||||
self.changelog[0].source[len(self.vars['source_basename']):]
|
||||
|
||||
distribution = self.changelog[0].distribution
|
||||
if distribution in ('unstable', ):
|
||||
if version.linux_revision_experimental or \
|
||||
version.linux_revision_backports or \
|
||||
version.linux_revision_other:
|
||||
raise RuntimeError("Can't upload to %s with a version of %s" %
|
||||
(distribution, version))
|
||||
if distribution in ('experimental', ):
|
||||
if not version.linux_revision_experimental:
|
||||
raise RuntimeError("Can't upload to %s with a version of %s" %
|
||||
(distribution, version))
|
||||
if distribution.endswith('-security') or distribution.endswith('-lts'):
|
||||
if version.linux_revision_backports or \
|
||||
version.linux_revision_other:
|
||||
raise RuntimeError("Can't upload to %s with a version of %s" %
|
||||
(distribution, version))
|
||||
if distribution.endswith('-backports'):
|
||||
if not version.linux_revision_backports:
|
||||
raise RuntimeError("Can't upload to %s with a version of %s" %
|
||||
(distribution, version))
|
||||
|
||||
def write(self) -> None:
|
||||
super().write()
|
||||
|
||||
|
9
debian/templates/sourcebin.meta.control.in
vendored
9
debian/templates/sourcebin.meta.control.in
vendored
@ -1,9 +0,0 @@
|
||||
Package: @source_basename@-source@source_suffix@
|
||||
Meta-Rules-Target: meta
|
||||
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=@source_basename@-source-@version@
|
||||
Build-Profiles: <!pkg.linux.nosource !pkg.linux.nometa !pkg.linux.quick>
|
||||
Architecture: all
|
||||
Depends: @source_basename@-source-@version@ (= ${binary:Version}), ${misc:Depends}
|
||||
Description: Linux kernel source (meta-package)
|
||||
This package depends on packages containing the sources of the latest Linux
|
||||
kernel.
|
Loading…
Reference in New Issue
Block a user