apt-dists-merge 1.0.0 → 1.0.1

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: 661b0b8dd9099c4af744f1d9026fa0f2474af1f81be6247a5463f4d862b003fb
4
- data.tar.gz: 0f2d7ac3478faf2f48d9f5c6fc3832062a9a440705b275fb6729a541405b687e
3
+ metadata.gz: ef31495cb9b09b7fc8b25c6dbc9f19b120688df0601e0509347853cb34f719d9
4
+ data.tar.gz: 5079ac9e753fa4632d0a66c47613c2e1d21c0c5a4cdc507de0e0bd87ba654b42
5
5
  SHA512:
6
- metadata.gz: 49d26cfb67d54dc6fee5ad44a0b6939c4672f04f0bef30cd7d042b50c002afdf10a64e3f46147f95046de48d3facddd8f89a9a46714703801528f087c4c3e06d
7
- data.tar.gz: f95558f6ddc923b0a39fc42616eaada2dd937c40319c4ce0be1d4eab05656f1b3437739ed1739d03c52c7f449e1ed86de471ebb121b69162524133831886acc7
6
+ metadata.gz: bc984eec77ddc7e141437e26a258f2974793016c4a7f5910cc079bcb79126454025e2d18308ec6a77b33df401d5c8094d7be11f12b6db71c5e97fb7067acbd02
7
+ data.tar.gz: b39f2528af747b17d5aaeb781fe413c562d256a65907c915287a9decb1d5a7bb6cba646b03e4643e7e91fb214813508e8c5f46edc130c6894c8d031ff83583d0
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # NEWS
2
2
 
3
+ ## 1.0.1 - 2021-09-28
4
+
5
+ ### Improvements
6
+
7
+ * Added support for a case that base directory doesn't exist.
8
+
3
9
  ## 1.0.0 - 2021-09-26
4
10
 
5
11
  Initial release.
@@ -9,6 +9,13 @@ module APTDistsMerge
9
9
  end
10
10
 
11
11
  def merge
12
+ unless File.exist?(@base_dir)
13
+ FileUtils.rm_rf(@merged_dir)
14
+ FileUtils.mkdir_p(@merged_dir)
15
+ FileUtils.cp_r(Dir.glob("#{@incoming_dir}/*"), @merged_dir)
16
+ return true
17
+ end
18
+
12
19
  components = (detect_components(@base_dir) |
13
20
  detect_components(@incoming_dir))
14
21
  components.each do |component|
@@ -1,3 +1,3 @@
1
1
  module APTDistsMerge
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
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-26 00:00:00.000000000 Z
11
+ date: 2021-09-28 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).