pkg_noisrev 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,9 +42,8 @@ The options are as follows:
42
42
 
43
43
  -V:: Show version and exit.
44
44
 
45
- -v:: Be more verbose. You can supply it several
46
- times, viz. <tt>-vv</tt> dumps even more
47
- debug info.
45
+ -v:: Tries to create a log in
46
+ /tmp/pkg_noisrev.log file.
48
47
 
49
48
  --pkg-dir STR:: Set the alternate package db directory.
50
49
 
@@ -48,9 +48,17 @@ if $conf[:verbose] >= 2
48
48
  pp $conf
49
49
  end
50
50
 
51
- File.delete $conf[:log] rescue nil
52
- log = Logger.new($conf[:log])
53
- log.formatter = proc { |severity, d, p, msg| "#{severity}: #{msg}\n" }
51
+ log = nil
52
+ if $conf[:verbose] >= 1
53
+ File.delete $conf[:log] rescue nil
54
+ begin
55
+ log = Logger.new($conf[:log], 'weekly')
56
+ File.chmod 0666, $conf[:log]
57
+ log.formatter = proc { |severity, d, p, msg| "#{severity}: #{msg}\n" }
58
+ log.info 'New Iteration'
59
+ rescue
60
+ end
61
+ end
54
62
 
55
63
  Signal.trap(:INT) do
56
64
  if $conf[:int_attempts] >= 0
@@ -1,3 +1,9 @@
1
+ === 0.0.2
2
+
3
+ Fri Aug 5 13:13:30 EEST 2011
4
+
5
+ - A log is created only if -v CLO is supplied.
6
+
1
7
  === 0.0.1
2
8
 
3
9
  Mon, 1 Aug 2011 12:34:04 +0300
@@ -42,9 +42,8 @@ The options are as follows:
42
42
 
43
43
  -V:: Show version and exit.
44
44
 
45
- -v:: Be more verbose. You can supply it several
46
- times, viz. <tt>-vv</tt> dumps even more
47
- debug info.
45
+ -v:: Tries to create a log in
46
+ /tmp/pkg_noisrev.log file.
48
47
 
49
48
  --pkg-dir STR:: Set the alternate package db directory.
50
49
 
@@ -1,7 +1,7 @@
1
1
  module Pkg_noisrev
2
2
  module Meta
3
3
  NAME = 'pkg_noisrev'
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  AUTHOR = 'Alexander Gromnitsky'
6
6
  EMAIL = 'alexander.gromnitsky@gmail.com'
7
7
  HOMEPAGE = 'http://github.com/gromnitsky/' + NAME
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pkg_noisrev
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexander Gromnitsky
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-04 00:00:00 Z
13
+ date: 2011-08-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: open4