repo-mgr 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repo_mgr/backends/deb.rb +5 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e6af886ad6d5adea7626716153f8da4e15edce28bf5300ba671e708f57e0b5a
4
- data.tar.gz: 71f3930291d0c7f84bd1bd80507560ec0f0886bbd0f6c8972c7e1628886d7f61
3
+ metadata.gz: be8fb6163c79ae7f9956b0237f390c4d7764c23ef6f4ffa24c1531a3726187e0
4
+ data.tar.gz: 60346b9d260718f3a03745b6c90b1fdb80c34ac62458cd999d67a2cadc7b840d
5
5
  SHA512:
6
- metadata.gz: f1f43472590d082815bd16d718bac5d2dca91502789a957c7b21ee5ba87a2dbec59e80455c986bb9a208802e8adabf85e8b73d0cc7641cf8ef1dd44317a95f77
7
- data.tar.gz: a65d9039b45515777e19a0b5c722b5b184781eafaae21d20e11f0e849c0a542d74988a9cd2fdb1f89584ee3ec15957a5180ba7da483bef6977d6a9080a2d742b
6
+ metadata.gz: 8af9d6f12205d03e88d28ed848331708a9c6313ea377fd9c9144a2a2f88070de904784cc63659a42b9f3d110775caeeea636d90953927ed645039f135873eaf9
7
+ data.tar.gz: 4688c21a24223d81a0b7fb1c9694a59e26cc7b125c4466aecf9a3bbc470c74619d6a2aa61f7469c9acc993c9f48ac4267fece461bc9738018bea819f5019214a
@@ -45,18 +45,19 @@ module RepoMgr
45
45
  repo_publish repo
46
46
  end
47
47
 
48
- def check_sig(pkg)
48
+ def check_sig(pkg, allow_fail = false)
49
49
  out, status = Open3.capture2e "dpkg-sig --verify #{pkg}"
50
50
 
51
- return out if status.exitstatus.zero?
51
+ return out if status.exitstatus.zero? || allow_fail
52
52
 
53
53
  Tools.error "unable to check package signature for #{pkg} - "\
54
54
  "dpkg-sig returned:\n#{out}"
55
55
  end
56
56
 
57
57
  def sign_pkg(repo, pkg)
58
- signature = check_sig(pkg)
59
- unless signature.first[-6, 5] == 'NOSIG'
58
+ signature = check_sig pkg, true
59
+
60
+ unless signature[-6, 5] == 'NOSIG'
60
61
  return puts "-- dpkg-sig returned:\n#{signature.first}"
61
62
  end
62
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo-mgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ștefan Rusu