vanagon 0.5.5 → 0.5.6

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: fcd5e7e5f1f39f1955e66d77c281857454889a32
4
- data.tar.gz: e8c58b0be17f84d4c3c589ddadc99375e05b5bb3
3
+ metadata.gz: 2788b73738b58776aa0bafc6d4739fc90be798bc
4
+ data.tar.gz: 3613f68d912a5825df9466d7f2434c6862aa46f3
5
5
  SHA512:
6
- metadata.gz: 2989af2711e652f63fa38ef1a47789c6873b8e9646d95724d2e35e2b53849067d9cd555650386c9bd34dc9debadf530253da7f0ccef3d09a1f56d0b7fd9dbf25
7
- data.tar.gz: 18da216b1b93412c6271433db131928a625168b1345e2a2817538f6ee45da86fc96a9bec0217098d1b08ac26d8738a40ae954ce4b7e8d336785106a03412cad6
6
+ metadata.gz: bce0bcaed54e907d75df0d746f5865680ce0533e87b1f028506cab511ca2735c2743a89f16f51e8ace3e0e09964aa8936e4337b0e0f84f0fb13a573b5a960425
7
+ data.tar.gz: a76b088fd7c56a0bced77dfb5189059b68a3b6a144e806071a4116e0a6725666c1fd1a101b6b27f95e6d05e12a4e5f84ebf5c947a132734c8a680828fff2112f
@@ -7,6 +7,7 @@ class Vanagon
7
7
  # @return [Array] list of commands required to build a debian package for the given project from a tarball
8
8
  def generate_package(project)
9
9
  target_dir = project.repo ? output_dir(project.repo) : output_dir
10
+ pkg_arch_opt = project.noarch ? "" : "-a#{@architecture}"
10
11
  ["mkdir -p output/#{target_dir}",
11
12
  "mkdir -p $(tempdir)/#{project.name}-#{project.version}",
12
13
  "cp #{project.name}-#{project.version}.tar.gz $(tempdir)/#{project.name}_#{project.version}.orig.tar.gz",
@@ -14,7 +15,7 @@ class Vanagon
14
15
  "cp -pr debian $(tempdir)/#{project.name}-#{project.version}",
15
16
  "gunzip -c #{project.name}-#{project.version}.tar.gz | '#{@tar}' -C '$(tempdir)/#{project.name}-#{project.version}' --strip-components 1 -xf -",
16
17
  "sed -i 's/\ /?/g' $(tempdir)/#{project.name}-#{project.version}/debian/install",
17
- "(cd $(tempdir)/#{project.name}-#{project.version}; debuild --no-lintian -uc -us)",
18
+ "(cd $(tempdir)/#{project.name}-#{project.version}; debuild --no-lintian #{pkg_arch_opt} -uc -us)",
18
19
  "cp $(tempdir)/*.deb ./output/#{target_dir}"]
19
20
  end
20
21
 
@@ -11,9 +11,9 @@ else
11
11
  fi
12
12
  <%- end -%>
13
13
 
14
- if [ -d "/tmp/.<%= @name %>.upgrade" ]
14
+ if [ -d "/tmp/.<%= @name %>.upgrade" ]; then
15
15
  <%- get_services.each do |service| -%>
16
- if [ -f "/tmp/.<%= @name %>.upgrade/<%= service.name %>" ]
16
+ if [ -f "/tmp/.<%= @name %>.upgrade/<%= service.name %>" ]; then
17
17
  /bin/launchctl load -F "<%= service.service_file %>"
18
18
  fi
19
19
  <%- end -%>
@@ -22,6 +22,6 @@ fi
22
22
  <%= File.read("resources/osx/postinstall-extras") if File.exist?("resources/osx/postinstall-extras") %>
23
23
 
24
24
  # Cleanup after ourselves
25
- if [ -e "/tmp/.<%= @name %>.upgrade" ]
25
+ if [ -e "/tmp/.<%= @name %>.upgrade" ]; then
26
26
  rm -rf "/tmp/.<%= @name %>.upgrade"
27
27
  fi
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # Cleanup previous operations
4
- if [ -e "/tmp/.<%= @name %>.upgrade" ]
4
+ if [ -e "/tmp/.<%= @name %>.upgrade" ]; then
5
5
  rm -rf "/tmp/.<%= @name %>.upgrade"
6
6
  fi
7
7
 
@@ -6,7 +6,7 @@
6
6
  Name="<%= settings[:product_name] %>"
7
7
  Language="1033"
8
8
  Codepage="1252"
9
- Version="<%= @version.sub(/\.g[0-9a-z]{7}$/, '') %>"
9
+ Version="<%= @platform.windows_style_version(@version) %>"
10
10
  Manufacturer="<%= settings[:company_name] %>" >
11
11
 
12
12
  <Package
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec