|
1 | 1 | """Helper for building projects from source.""" |
2 | 2 |
|
3 | 3 | import datetime |
4 | | -import fileinput |
5 | 4 | import glob |
6 | 5 | import logging |
7 | 6 | import os |
@@ -263,23 +262,6 @@ def _CreatePackagingFiles(self, source_directory, project_version): |
263 | 262 | logging.error(f'Missing debian sub directory in: {source_directory:s}') |
264 | 263 | return False |
265 | 264 |
|
266 | | - if self.distribution == 'noble': |
267 | | - control_file_path = os.path.join(debian_directory, 'control') |
268 | | - for line in fileinput.input(control_file_path, inplace=True): |
269 | | - if line.startswith('Build-Depends:'): |
270 | | - line = line.rstrip() + ', pybuild-plugin-pyproject\n' |
271 | | - print(line, end='') |
272 | | - |
273 | | - patches_path = os.path.join(debian_directory, 'patches') |
274 | | - if not os.path.exists(patches_path): |
275 | | - os.mkdir(patches_path) |
276 | | - |
277 | | - # pyproject_patch = os.path.join(patches_path, 'pyproject.patch') |
278 | | - # TODO: add option to control patches for noble pyproject.toml builds |
279 | | - |
280 | | - # TODO: create series file |
281 | | - # patches_series = os.path.join(patches_path, 'series') |
282 | | - |
283 | 265 | return True |
284 | 266 |
|
285 | 267 | # pylint: disable=redundant-returns-doc,unused-argument |
@@ -1010,12 +992,12 @@ def Clean(self, source_helper_object): |
1010 | 992 | self._RemoveOlderDPKGPackages(project_name, project_version) |
1011 | 993 |
|
1012 | 994 | if project_name.startswith('python-'): |
1013 | | - project_name = f'python3-{project_name[7]:s}' |
| 995 | + project_name = f'python3-{project_name[7:]:s}' |
1014 | 996 | self._RemoveOlderDPKGPackages(project_name, project_version) |
1015 | 997 |
|
1016 | 998 | elif (project_name.startswith('python2-') or |
1017 | 999 | project_name.startswith('python3-')): |
1018 | | - project_name = f'python3-{project_name[8]:s}' |
| 1000 | + project_name = f'python3-{project_name[8:]:s}' |
1019 | 1001 | self._RemoveOlderDPKGPackages(project_name, project_version) |
1020 | 1002 |
|
1021 | 1003 |
|
|
0 commit comments