use end of line in search pattern to avoid adding and removing multiverse each time
authorPaul Tonelli <paul.tonelli@logilab.fr>
Wed, 27 Nov 2013 16:22:39 +0100
changeset 190 f8e5b4a7792b
parent 189 67a5184399e7
child 191 d5616a52f5fb
use end of line in search pattern to avoid adding and removing multiverse each time
update.sls
--- a/update.sls	Wed Nov 27 16:21:45 2013 +0100
+++ b/update.sls	Wed Nov 27 16:22:39 2013 +0100
@@ -1,15 +1,7 @@
-multiverse_removed:
-  file.sed:
-    - name: /etc/apt/sources.list
-    - before: 'multiverse'
-    - after: ''
-
 /etc/apt/sources.list:
   file.sed:
-    - before: 'universe'
+    - before: 'universe$'
     - after: 'universe multiverse'
-    - require:
-        - file.sed: multiverse_removed
 
 my_pkgs:
   pkg.installed: