apt-dists-merge 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: ef31495cb9b09b7fc8b25c6dbc9f19b120688df0601e0509347853cb34f719d9
4
- data.tar.gz: 5079ac9e753fa4632d0a66c47613c2e1d21c0c5a4cdc507de0e0bd87ba654b42
3
+ metadata.gz: 5d0fe0b3d75a9cc19fced68592834431b4e2f1d11232c94def0acec600d2e2e7
4
+ data.tar.gz: 19229a88d498b813ecb684b945a44031b6a4e4fe1ec185d819787ebe4f208e28
5
5
  SHA512:
6
- metadata.gz: bc984eec77ddc7e141437e26a258f2974793016c4a7f5910cc079bcb79126454025e2d18308ec6a77b33df401d5c8094d7be11f12b6db71c5e97fb7067acbd02
7
- data.tar.gz: b39f2528af747b17d5aaeb781fe413c562d256a65907c915287a9decb1d5a7bb6cba646b03e4643e7e91fb214813508e8c5f46edc130c6894c8d031ff83583d0
6
+ metadata.gz: 49fdbd8efd478375437caaabf1ce0d59d8b3ad3cabdccd3fe8cc917b28c1bc8129dc6ecd561bc2113e753a5b603a3745dbd49402b29da0673fa514a97ade218f
7
+ data.tar.gz: 5e10e1002db1bb427020eae03be0b042bfe6a33377b4f0616c5cf0d1a07660dec69682ca894afaa3c8507df4c8a65aee5b3de033b66317ea66b2a1d76a3adc65
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # NEWS
2
2
 
3
+ ## 1.0.2 - 2021-10-02
4
+
5
+ ### Improvements
6
+
7
+ * Added support for removing duplicated packages.
8
+
3
9
  ## 1.0.1 - 2021-09-28
4
10
 
5
11
  ### Improvements
@@ -196,7 +196,10 @@ module APTDistsMerge
196
196
  end
197
197
 
198
198
  def merge_packages_data(base, incoming)
199
- (base + incoming).sort do |a, b|
199
+ packages = (base + incoming).uniq do |metadata,|
200
+ [metadata["Package"], metadata["Version"]]
201
+ end
202
+ packages.sort do |a, b|
200
203
  a_metadata = a[0]
201
204
  b_metadata = b[0]
202
205
  a_package = a_metadata["Package"]
@@ -1,3 +1,3 @@
1
1
  module APTDistsMerge
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apt-dists-merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2021-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generally, you should use more general APT repository management tool
14
14
  such as [aptly](https://www.aptly.info/) and [reprepro](https://salsa.debian.org/brlink/reprepro).