[logilab] add the public logilab backports debian repository
authorDavid Douard <david.douard@logilab.fr>
Fri, 22 May 2015 09:08:18 +0200
changeset 28 245e16e3c9af
parent 27 9e89d6d03ca9
child 29 e9be2aa3c3e1
[logilab] add the public logilab backports debian repository
cubicweb/init.sls
logilab/backports.sls
logilab/logilab-pinning
--- a/cubicweb/init.sls	Fri May 22 09:07:23 2015 +0200
+++ b/cubicweb/init.sls	Fri May 22 09:08:18 2015 +0200
@@ -1,5 +1,6 @@
 include:
   - logilab.public
+  - logilab.backports
   - cubicweb.dependencies
 
 cw-logilab-deps:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab/backports.sls	Fri May 22 09:08:18 2015 +0200
@@ -0,0 +1,25 @@
+{% if grains['os'] == 'Debian' %}
+
+include:
+  - logilab.pinning
+  - logilab.signingkey
+
+logilab-public-backports:
+  pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-backports.list
+    - human_name: Logilab backports Debian repository
+    - name: deb http://download.logilab.org/backports/dists {{ grains['oscodename'] }}/
+    - require:
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
+
+logilab-public-backports-src:
+  pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-backports.list
+    - human_name: Logilab backports Debian repository
+    - name: deb-src http://download.logilab.org/backports/dists {{ grains['oscodename'] }}/
+    - require:
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
+
+{% endif %}
\ No newline at end of file
--- a/logilab/logilab-pinning	Fri May 22 09:07:23 2015 +0200
+++ b/logilab/logilab-pinning	Fri May 22 09:08:18 2015 +0200
@@ -7,5 +7,9 @@
 Pin-Priority: 600
 
 Package: *
+Pin: release a=logilab-backports
+Pin-Priority: 100
+
+Package: *
 Pin: release a=unstable
 Pin-Priority: 1