deb-s3 0.11.5 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/lib/deb/s3/cli.rb +5 -5
- data/lib/deb/s3/package.rb +1 -6
- data/lib/deb/s3/templates/package.erb +1 -1
- data/lib/deb/s3.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0412b30200d8205a1d117e0aaeaae8ece107a5476b8d587bcd89c5103444afdd
|
4
|
+
data.tar.gz: e60c337da7d341a7bb5738bbaad3e09554295bb573b7009dcb27347b9cc95c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8fd3031fd71131c96d0a76b3a9be6e765fd640a5c61c6c2591c1cea48c9318e9c8984bb7c6f771a2a576c9e88ceebfcd41a76a1731e30bc1875d4ac41de129a
|
7
|
+
data.tar.gz: cda76567f2097475cbacaed5c52faf894d21a211996ed71de832b8af49ec0a9e99647584734e88586e534270d01f17f9d16d7f910dc90a9bd419ce9e8a03e708
|
data/README.md
CHANGED
@@ -29,21 +29,20 @@ With `deb-s3`, there is no need for this. `deb-s3` features:
|
|
29
29
|
|
30
30
|
## Getting Started
|
31
31
|
|
32
|
-
|
32
|
+
Install the package via gem
|
33
33
|
|
34
34
|
```console
|
35
|
-
$
|
36
|
-
$ gem install deb-s3-0.11.5.gem
|
35
|
+
$ gem install deb-s3
|
37
36
|
```
|
38
37
|
|
39
|
-
or via APT:
|
38
|
+
or via APT (Debian 11 "Bullseye" and Ubuntu 22.04 "Jammy Jellyfish" and newer):
|
40
39
|
|
41
40
|
```console
|
42
41
|
# Add repository key
|
43
42
|
$ sudo wget -O /etc/apt/trusted.gpg.d/deb-s3-archive-keyring.gpg https://raw.githubusercontent.com/deb-s3/deb-s3/master/deb-s3-archive-keyring.gpg
|
44
43
|
|
45
44
|
# Add repository
|
46
|
-
$ echo "deb http://deb-s3-repo.s3.us-east-2.amazonaws.com/
|
45
|
+
$ echo "deb http://deb-s3-repo.s3.us-east-2.amazonaws.com/$(lsb_release -is | tr A-Z a-z)/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
47
46
|
|
48
47
|
# Install package
|
49
48
|
$ sudo apt-get update
|
data/lib/deb/s3/cli.rb
CHANGED
@@ -86,11 +86,11 @@ class Deb::S3::CLI < Thor
|
|
86
86
|
"Can be public, private, or authenticated."
|
87
87
|
|
88
88
|
class_option :sign,
|
89
|
-
:
|
90
|
-
:desc
|
89
|
+
:repeatable => true,
|
90
|
+
:desc => "GPG Sign the Release file when uploading a package, " +
|
91
91
|
"or when verifying it after removing a package. " +
|
92
|
-
"Use --sign with your
|
93
|
-
"
|
92
|
+
"Use --sign with your GPG key ID to use a specific key (--sign=6643C242C18FE05B)." +
|
93
|
+
"Can be specified multiple times for multiple singing keys."
|
94
94
|
|
95
95
|
class_option :gpg_options,
|
96
96
|
:default => "",
|
@@ -574,7 +574,7 @@ class Deb::S3::CLI < Thor
|
|
574
574
|
missing_packages = []
|
575
575
|
|
576
576
|
manifest.packages.each do |p|
|
577
|
-
unless Deb::S3::Utils.s3_exists? p.
|
577
|
+
unless Deb::S3::Utils.s3_exists? p.url_filename(options[:codename])
|
578
578
|
sublog("The following packages are missing:\n\n") if missing_packages.empty?
|
579
579
|
puts(p.generate(options[:codename]))
|
580
580
|
puts("")
|
data/lib/deb/s3/package.rb
CHANGED
@@ -144,10 +144,6 @@ class Deb::S3::Package
|
|
144
144
|
@url_filename || "pool/#{codename}/#{self.name[0]}/#{self.name[0..1]}/#{File.basename(self.filename)}"
|
145
145
|
end
|
146
146
|
|
147
|
-
def url_filename_encoded(codename)
|
148
|
-
@url_filename || "pool/#{codename}/#{self.name[0]}/#{self.name[0..1]}/#{s3_escape(File.basename(self.filename))}"
|
149
|
-
end
|
150
|
-
|
151
147
|
def generate(codename)
|
152
148
|
template("package.erb").result(binding)
|
153
149
|
end
|
@@ -254,8 +250,7 @@ class Deb::S3::Package
|
|
254
250
|
self.attributes[:deb_installed_size] = fields.delete('Installed-Size')
|
255
251
|
|
256
252
|
# Packages manifest fields
|
257
|
-
|
258
|
-
self.url_filename = filename && CGI.unescape(filename)
|
253
|
+
self.url_filename = fields.delete('Filename')
|
259
254
|
self.sha1 = fields.delete('SHA1')
|
260
255
|
self.sha256 = fields.delete('SHA256')
|
261
256
|
self.md5 = fields.delete('MD5sum')
|
@@ -40,7 +40,7 @@ Origin: <%= attributes[:deb_origin] %>
|
|
40
40
|
<% end -%>
|
41
41
|
Priority: <%= attributes[:deb_priority] %>
|
42
42
|
Homepage: <%= url or "http://nourlgiven.example.com/" %>
|
43
|
-
Filename: <%=
|
43
|
+
Filename: <%= url_filename(codename) %>
|
44
44
|
<% if size -%>
|
45
45
|
Size: <%= size %>
|
46
46
|
<% end -%>
|
data/lib/deb/s3.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deb-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Robertson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -88,7 +88,7 @@ homepage: http://invalidlogic.com/
|
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|
91
|
-
post_install_message:
|
91
|
+
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|
94
94
|
- lib
|
@@ -103,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.3.
|
107
|
-
signing_key:
|
106
|
+
rubygems_version: 3.3.15
|
107
|
+
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Easily create and manage an APT repository on S3.
|
110
110
|
test_files: []
|