apt_stage_artifacts 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: d51905e7a2e23e20b04d1cd22a6e61edc8ec929177f1a5ccdee059af132232d0
4
- data.tar.gz: fc6413ef75d8b67e8aa58c2bc02cb5f5c054d54da142041b369983ea8ee4b60d
2
+ SHA1:
3
+ metadata.gz: 4f50352d05718bbbe350ea4c6dfc1bca13c3286d
4
+ data.tar.gz: 021f50e22c595261541fec6db58c9fe9ffff7588
5
5
  SHA512:
6
- metadata.gz: c407f46e72961f82815fda25d44bf691086028088755f54fc816685193833a6daf299aa5258523ba91981988ff3e3501e9cb21c3f8ce324784942fbd11b470e8
7
- data.tar.gz: feae60918c1195903d34d210bb068d17333bb2ad353b09c74280f1c2d5512a6d6668915184247bdd9cd75d7611ca630f6a08ec92471c040d3fd10c9e2d07338a
6
+ metadata.gz: 1222f2be4b58acfa9fb5c42afa719b5025e7504351e3ae8d42e3048d116ea7c8ac3658558411835650fa712f624b035c00f3d4c18c0cf6618ae4fb05bc15bb17
7
+ data.tar.gz: 11ee72ca13adbbb277edad093915a4febc524cc61e179a8c895616407cf8278e8434da55641c14632f37f698354ebddd352762f30999710e8aae51fc5599ccfe
@@ -77,13 +77,16 @@ class AptStageArtifacts
77
77
  if File.directory?(File.join(@top_directory, 'deb'))
78
78
  @top_directory = File.join(@top_directory, 'deb')
79
79
  end
80
+ unless File.directory?(@top_directory)
81
+ fatal "Artifact directory \"#{@top_directory}\" does not exist"
82
+ end
80
83
  elsif File.directory?('./output/deb')
81
84
  @top_directory = './output/deb'
82
85
  elsif File.directory?('./pkg/deb')
83
86
  @top_directory = './pkg/deb'
84
87
  else
85
- logger.error 'Cannot find .deb artifacts. Neither pkg/deb nor output/deb exist.'
86
- exit 1
88
+ logger.warn 'Cannot find .deb artifacts. Neither pkg/deb nor output/deb exist. Skipping.'
89
+ exit 0
87
90
  end
88
91
 
89
92
  logger.info "Searching for puppetN/*.deb packages in #{@top_directory}"
@@ -12,8 +12,8 @@ class AptStageArtifacts
12
12
 
13
13
  # Debian/Ubuntu codenames that we care about.
14
14
  # Some codenames are skipped because we don't/haven't shipped for them.
15
- DEBIAN_CODENAMES = %w[jessie stretch buster bullseye bookworm trixie]
16
- UBUNTU_CODENAMES = %w[xenial bionic focal groovy]
15
+ DEBIAN_CODENAMES = %w[wheezy jessie stretch buster bullseye bookworm trixie]
16
+ UBUNTU_CODENAMES = %w[lucid precise trusty xenial bionic focal groovy]
17
17
  VALID_CODENAMES = DEBIAN_CODENAMES | UBUNTU_CODENAMES
18
18
 
19
19
  # Validation constraints
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class AptStageArtifacts
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apt_stage_artifacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Release Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.7.6
197
+ rubygems_version: 2.6.11
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Stages .deb artifacts to a remote freight repository