Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
infra
ansible-librem
Commits
876ee32a
Commit
876ee32a
authored
Aug 08, 2018
by
Guido Gunther
Browse files
Add hook to update repo before the build starts
parent
7847ff24
Changes
4
Hide whitespace changes
Inline
Side-by-side
roles/gbp/files/D99apt_update
0 → 100755
View file @
876ee32a
#!/bin/bash
echo
'Update package information'
apt-get update
roles/gbp/files/pbuilderrc.local
0 → 100644
View file @
876ee32a
HOOKDIR=/etc/pbuilder/hooks
roles/gbp/tasks/main.yml
View file @
876ee32a
...
...
@@ -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
roles/gbp/vars/main.yml
0 → 100644
View file @
876ee32a
_gbp_pbuilder_additional_hooks
:
-
D99apt_update
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment