misc: remove deb repository handling (#80288)
gitea/eobuilder/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-08-05 11:49:06 +02:00
parent a7aa93137e
commit 9e0a88af56
2 changed files with 0 additions and 24 deletions

View File

@ -136,7 +136,6 @@ def prepare_build(dist, project, cmd_options, new):
"""
package = {
'repository': settings.DEFAULT_UNSTABLE_REPOSITORIES[dist],
'copy_in_testing': True,
'version': '',
'source_name': '',
'names': [],
@ -170,7 +169,6 @@ def prepare_build(dist, project, cmd_options, new):
repo = r.split(':')
if repo[0] == dist:
package["repository"] = repo[1]
package["copy_in_testing"] = False
# get package source name
control_file = os.path.join(debian_folder, 'control')
@ -383,27 +381,6 @@ def send_packages(dist, arch, project, package, last_tag, dput=True):
"dput -u %s %s_%s_%s.changes"
% (package['repository'], package['source_name'], package['version'].split(':', 1)[-1], arch)
)
print("+ Updating repository ...")
call('ssh root@%s "/etc/cron.hourly/process-incoming"' % settings.REPOSITORY_URL)
old_version = tuple(int(d) for d in last_tag.split('.'))
new_version = tuple(int(d) for d in project['current_tag'].split('.'))
if new_version > old_version and project['current_tag'] == project['version']:
print("New tag detected : %s" % project['current_tag'])
if package['source_name'] in settings.MANUAL_TESTING_REPOSITORIES:
package_repos = settings.MANUAL_TESTING_REPOSITORIES[package['source_name']]
else:
package_repos = settings.DEFAULT_TESTING_REPOSITORIES
packages = package['names'] + [package['source_name']]
packages = " ".join(packages)
if dist in package_repos and package['copy_in_testing']:
for repo in package_repos[dist]:
print("+ Copy %s packages to %s repository (%s)" % (package['source_name'], repo, dist))
call(
'ssh root@%s "/usr/bin/reprepro -b /var/vhosts/deb.entrouvert.org copy %s %s %s"'
% (settings.REPOSITORY_URL, repo, package['repository'], packages)
)
call('ssh root@%s /usr/local/bin/update-deb-repo-html' % settings.REPOSITORY_URL)
else:
print("+ Package not sent to repository (--no-dput used).")
return

View File

@ -7,7 +7,6 @@ ORIGIN_PATH = "/var/lib/eobuilder/origin"
LOCK_PATH = "/var/lib/eobuilder/lock"
PBUILDER_RESULT = "/var/lib/eobuilder/results"
EOBUILDER_TMP = "/var/tmp/eobuilder"
REPOSITORY_URL = "deb.entrouvert.org"
GIT_REPOSITORY_URL = "git+ssh://git@repos.entrouvert.org"
DEBIAN_VERSIONS = {
"bookworm": "120",