mspac 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: f11225e1ee515b02e7fae345ed72edc3ab734635
4
- data.tar.gz: 24864d1e8f46ea0092b60766740dbb7c88496d32
3
+ metadata.gz: 542f3ad5417e408064d10755a2b0951003ff755e
4
+ data.tar.gz: 81e737dc17e870887db5918bbdfacf2ce419acae
5
5
  SHA512:
6
- metadata.gz: 37d5dbb4644156f768cae5c31accca659b3ef7710d168fe56f631e196e600b4d9785b3e00118d48f1a00c69248fdfb08033d0157729ab2a0dc6dfcc2d82b56dd
7
- data.tar.gz: f3260122855734fb191536a3b1db047a33e50f61ca6f4234fe6771659131e38e3becf9d9d55b1359399a310c346a4ed6c3fde7e79a3bc4819f166845eedd489c
6
+ metadata.gz: 888ae407d9c6f40315cfe1c66058cc0a5f1101d417d8e95fe6056931ca4ac094452fd1068f6621acccf50eb2bf0182d655c52ee49eeaa48032d8f017bd0e2d50
7
+ data.tar.gz: 4324f2889973e3af3881147efa616765914a6a4ecd643fc491f876ca3fac16f4ed6c1d0cc447f6bd3be2146b4cbf73be17e4df4f607304b8ed0bd9a596e6567c
data/bin/mspac CHANGED
@@ -228,9 +228,9 @@ begin
228
228
  elsif (options["upgrade"])
229
229
  mspac.upgrade
230
230
  else
231
- if (
232
- !options["refresh"] ||
233
- (options["pellets"] && !options["pellets"].empty?)
231
+ unless (
232
+ (options["clean"] || options["refresh"]) &&
233
+ (options["pellets"].nil? || options["pellets"].empty?)
234
234
  )
235
235
  mspac.install(options["pellets"], options["force"])
236
236
  end
@@ -40,11 +40,11 @@ class MsPac::PackageManager
40
40
  when "pacman"
41
41
  system("sudo pacman --needed --noconfirm -S #{pkgs}")
42
42
  when "perl"
43
- system("sudo cpan #{pkgs}")
43
+ system("umask 022 && sudo cpan #{pkgs}")
44
44
  when "python2"
45
- system("python2 -m pip install #{pkgs}")
45
+ system("umask 022 && sudo python2 -m pip install #{pkgs}")
46
46
  when "python3"
47
- system("python3 -m pip install #{pkgs}")
47
+ system("umask 022 && sudo python3 -m pip install #{pkgs}")
48
48
  when "yum"
49
49
  raise Error::UnsupportedPackageManagerError.new("yum")
50
50
  when "zipper"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mspac
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
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-07 00:00:00.000000000 Z
11
+ date: 2015-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scoobydoo