repomate 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/repomate/cli.rb CHANGED
@@ -130,7 +130,7 @@ Everything between the last two \"publish (-P) commands\" will be lost if you pr
130
130
  def choose_package(action)
131
131
  packages = @repomate.list_packages("dists")
132
132
  packages.each do |package|
133
- printf "%d) %-50s%-20s%s\n", package[:number], package[:controlfile]['Package'], package[:controlfile]['Version'], "#{package[:suitename]}/#{package[:component]}"
133
+ printf "%-7s%-50s%-20s%s\n", "#{package[:number]})", package[:controlfile]['Package'], package[:controlfile]['Version'], "#{package[:suitename]}/#{package[:component]}"
134
134
  end
135
135
 
136
136
  printf "\n%s", "Enter number or [q|quit] to abord: "
@@ -73,7 +73,7 @@ module RepoMate
73
73
  path = File.join("dists", entry[:suitename], entry[:component], entry[:architecture_dir], package.newbasename)
74
74
 
75
75
  File.open(packagesfile, 'a') do |file|
76
- package.controlfile.each { |key, value| file.puts "#{key}: #{value}" if key }
76
+ package.controlfile.each { |key, value| file.puts "#{key}: #{value}" unless value.to_s.empty? }
77
77
  file.puts packages_template.result(binding)
78
78
  end
79
79
  raise "Could not gzip" unless system "gzip -9 -c #{packagesfile} > #{packagesfile}.gz"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repomate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-06-07 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: slop
17
- requirement: &70367156189380 !ruby/object:Gem::Requirement
17
+ requirement: &70097650765320 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70367156189380
25
+ version_requirements: *70097650765320
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: gpgme
28
- requirement: &70367156188840 !ruby/object:Gem::Requirement
28
+ requirement: &70097650764720 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 2.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70367156188840
36
+ version_requirements: *70097650764720
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: sqlite3
39
- requirement: &70367156188260 !ruby/object:Gem::Requirement
39
+ requirement: &70097650763720 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 1.3.6
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70367156188260
47
+ version_requirements: *70097650763720
48
48
  description: A tool to manage Debian repositories
49
49
  email:
50
50
  - flo@doobie.cc