Commit efd7b735 authored by Guido Günther's avatar Guido Günther

Merge branch 'apt-update' into 'master'

Add pbuilder hooks

See merge request !14
parents 7847ff24 743c53af
......@@ -40,6 +40,10 @@
tags:
- gbp_keyrings
- role: gbp
pbuilder_hook_dir: /etc/pbuilder/hooks
pbuilder_example_hooks:
- D80no-man-db-rebuild
- B90lintian
gbp_cowbuilder_targets:
- dist: buster
- dist: buster
......
#!/bin/bash
echo 'Update package information'
apt-get update
HOOKDIR=/etc/pbuilder/hooks
......@@ -2,3 +2,19 @@
template:
src: templates/gbp.conf.j2
dest: /etc/git-buildpackage/gbp.conf
- name: Set additional hook dir
set_fact:
gbp_pbuilder_hookdir: /etc/pbuilder/hooks
- name: Ensure additional hooks
copy:
src: "{{ item }}"
dest: "{{ pbuilder_hook_dir }}/{{ item }}"
mode: "0755"
with_items: "{{ _gbp_pbuilder_additional_hooks }}"
- name: Ensure hooks are being used
copy:
src: pbuilderrc.local
dest: /etc/pbuilder/pbuilderrc.local
_gbp_pbuilder_additional_hooks:
- D99apt_update
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment