vanagon 0.15.24 → 0.15.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c90f6996d87caf5793fc3eaf0b7b609454d041b
4
- data.tar.gz: 6c9d867da407534d7c7572c0ae5b309b9cd4f63c
3
+ metadata.gz: e439c40238f1b9c246f4643ff159f37f55437420
4
+ data.tar.gz: 7b36f0ba073896d0b59955e81b5e36b01e9f8de8
5
5
  SHA512:
6
- metadata.gz: 59cbc9de7d13484bd6ee0e6c4909740d8666e32d2f79f40439c27cf76dfb206e08dcb424faa0acea098fdfe7314b5341afe470e70ba0a4521daaeccd5e853015
7
- data.tar.gz: c86a251a3092cf00a30d46ff244999cae5501b95549c9a3b1544eb5032e0aea87d3e8bdfc21b8d54a8c8f50bcf1881e2eb38d6054f13bfdf1fa674a5f001808f
6
+ metadata.gz: 0a7dab94875f2434215cdd7dba115d89d73aaab095c1bb8684adcbe2dbf985e7b7f1fcdcdb6c6cdb5145f705182804e9aebfb40202294fdad118b5ca82062043
7
+ data.tar.gz: b4878076d2e16f5c17cfef267665ecdf5b91232e4604dc5289a9e930f80d669d3a8040b427b2ee672461e060af65c11e67fd6a1ed652c2d8e3bbd8414869fe9f
@@ -172,11 +172,15 @@ install -d %{buildroot}
172
172
  <%- end -%>
173
173
 
174
174
  # Here we turn all dirs in the file-list into %dir entries to avoid duplicate files
175
- while read entry; do
176
- if [ -n "$entry" -a -d "$entry" -a ! -L "$entry" ]; then
177
- <%= @platform.sed %> -i "\|^$entry\$|s|^|%dir |" %{SOURCE1}
178
- fi
179
- done < %{SOURCE1}
175
+ if command -v perl; then
176
+ perl -i -lne 'if ((-d $_) && !(-l $_)) { print "%dir $_" } else { print }' %{SOURCE1}
177
+ else
178
+ while read entry; do
179
+ if [ -n "$entry" -a -d "$entry" -a ! -L "$entry" ]; then
180
+ <%= @platform.sed %> -i "\|^$entry\$|s|^|%dir |" %{SOURCE1}
181
+ fi
182
+ done < %{SOURCE1}
183
+ fi
180
184
 
181
185
 
182
186
  %pre
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.24
4
+ version: 0.15.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git