tpkg 1.27.3 → 1.27.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/gem2tpkg +1 -1
- data/lib/tpkg.rb +19 -18
- metadata +62 -37
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ spec = Gem::Specification.new do |s|
|
|
5
5
|
s.add_dependency('facter')
|
6
6
|
s.add_dependency('net-ssh')
|
7
7
|
s.add_dependency('ddao-kwalify')
|
8
|
-
s.version = '1.27.
|
8
|
+
s.version = '1.27.4'
|
9
9
|
s.authors = ['Darren Dao', 'Jason Heiss']
|
10
10
|
s.email = 'tpkg-users@lists.sourceforge.net'
|
11
11
|
s.homepage = 'http://tpkg.sourceforge.net'
|
data/bin/gem2tpkg
CHANGED
@@ -12,7 +12,7 @@ require 'facter'
|
|
12
12
|
|
13
13
|
# We don't want to just use the first gem command in the user's PATH by
|
14
14
|
# default, as that may not be a tpkg gem. I.e. /usr/bin/gem on Mac OS X.
|
15
|
-
DEFAULT_GEM_COMMAND = "#{Tpkg::DEFAULT_BASE}/ruby-
|
15
|
+
DEFAULT_GEM_COMMAND = "#{Tpkg::DEFAULT_BASE}/ruby-1.8/bin/gem"
|
16
16
|
|
17
17
|
# Haven't found a Ruby method for creating temporary directories,
|
18
18
|
# so create a temporary file and replace it with a directory.
|
data/lib/tpkg.rb
CHANGED
@@ -56,7 +56,7 @@ require 'kwalify' # for validating yaml
|
|
56
56
|
|
57
57
|
class Tpkg
|
58
58
|
|
59
|
-
VERSION = '1.27.
|
59
|
+
VERSION = '1.27.4'
|
60
60
|
CONFIGDIR = '/etc'
|
61
61
|
|
62
62
|
GENERIC_ERR = 1
|
@@ -469,7 +469,7 @@ class Tpkg
|
|
469
469
|
end
|
470
470
|
|
471
471
|
# check if it's from root dir or reloc dir
|
472
|
-
if f =~ /^#{root_dir}/
|
472
|
+
if f =~ /^#{Regexp.escape(root_dir)}/
|
473
473
|
short_fn = f[root_dir.length ..-1]
|
474
474
|
else
|
475
475
|
short_fn = f[reloc_dir.length + 1..-1]
|
@@ -2661,7 +2661,7 @@ class Tpkg
|
|
2661
2661
|
next if File.symlink?(f)
|
2662
2662
|
|
2663
2663
|
# check if it's from root dir or reloc dir
|
2664
|
-
if f =~ /^#{root_dir}/
|
2664
|
+
if f =~ /^#{Regexp.escape(root_dir)}/
|
2665
2665
|
short_fn = f[root_dir.length ..-1]
|
2666
2666
|
else
|
2667
2667
|
short_fn = f[reloc_dir.length + 1..-1]
|
@@ -3120,19 +3120,8 @@ class Tpkg
|
|
3120
3120
|
requests.each do |request|
|
3121
3121
|
puts "parse_requests processing #{request.inspect}" if @@debug
|
3122
3122
|
|
3123
|
-
|
3124
|
-
|
3125
|
-
|
3126
|
-
# Tpkg::parse_request is a class method and doesn't know where packages are installed.
|
3127
|
-
# So we have to tell it ourselves.
|
3128
|
-
req = Tpkg::parse_request(request, @installed_directory)
|
3129
|
-
newreqs << req
|
3130
|
-
|
3131
|
-
puts "Initializing the list of possible packages for this req" if @@debug
|
3132
|
-
if !packages[req[:name]]
|
3133
|
-
packages[req[:name]] = available_packages_that_meet_requirement(req)
|
3134
|
-
end
|
3135
|
-
else # User specified a file or URI
|
3123
|
+
# User specified a file or URI
|
3124
|
+
if request =~ /^http[s]?:\/\// or File.file?(request)
|
3136
3125
|
req = {}
|
3137
3126
|
metadata = nil
|
3138
3127
|
source = nil
|
@@ -3168,6 +3157,18 @@ class Tpkg
|
|
3168
3157
|
# The user specified a particular package, so it is the only package
|
3169
3158
|
# that can be used to meet the requirement
|
3170
3159
|
packages[req[:name]] = [pkg]
|
3160
|
+
else # basic package specs ('foo' or 'foo=1.0')
|
3161
|
+
puts "parse_requests request looks like package spec" if @@debug
|
3162
|
+
|
3163
|
+
# Tpkg::parse_request is a class method and doesn't know where packages are installed.
|
3164
|
+
# So we have to tell it ourselves.
|
3165
|
+
req = Tpkg::parse_request(request, @installed_directory)
|
3166
|
+
newreqs << req
|
3167
|
+
|
3168
|
+
puts "Initializing the list of possible packages for this req" if @@debug
|
3169
|
+
if !packages[req[:name]]
|
3170
|
+
packages[req[:name]] = available_packages_that_meet_requirement(req)
|
3171
|
+
end
|
3171
3172
|
end
|
3172
3173
|
end
|
3173
3174
|
|
@@ -3781,9 +3782,9 @@ class Tpkg
|
|
3781
3782
|
is_doing_upgrade = true if removed_pkgs.include?(pkg[:metadata][:name])
|
3782
3783
|
ret_val |= unpack(pkgfile, :passphrase => passphrase, :externals_to_skip => externals_to_skip,
|
3783
3784
|
:is_doing_upgrade => is_doing_upgrade)
|
3785
|
+
# create and install stubbed native package if needed
|
3786
|
+
stub_native_pkg(pkg)
|
3784
3787
|
end
|
3785
|
-
# create and install stubbed native package if needed
|
3786
|
-
stub_native_pkg(pkg)
|
3787
3788
|
has_updates = true
|
3788
3789
|
end
|
3789
3790
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tpkg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 115
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 27
|
9
|
+
- 4
|
10
|
+
version: 1.27.4
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Darren Dao
|
@@ -10,39 +16,51 @@ autorequire:
|
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
18
|
|
13
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-19 00:00:00 -07:00
|
14
20
|
default_executable:
|
15
21
|
dependencies:
|
16
22
|
- !ruby/object:Gem::Dependency
|
17
23
|
name: facter
|
18
|
-
|
19
|
-
|
20
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
21
27
|
requirements:
|
22
28
|
- - ">="
|
23
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
24
33
|
version: "0"
|
25
|
-
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
26
36
|
- !ruby/object:Gem::Dependency
|
27
37
|
name: net-ssh
|
28
|
-
|
29
|
-
|
30
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
31
41
|
requirements:
|
32
42
|
- - ">="
|
33
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
34
47
|
version: "0"
|
35
|
-
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
36
50
|
- !ruby/object:Gem::Dependency
|
37
51
|
name: ddao-kwalify
|
38
|
-
|
39
|
-
|
40
|
-
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
41
55
|
requirements:
|
42
56
|
- - ">="
|
43
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
44
61
|
version: "0"
|
45
|
-
|
62
|
+
type: :runtime
|
63
|
+
version_requirements: *id003
|
46
64
|
description:
|
47
65
|
email: tpkg-users@lists.sourceforge.net
|
48
66
|
executables:
|
@@ -55,34 +73,34 @@ extensions: []
|
|
55
73
|
extra_rdoc_files: []
|
56
74
|
|
57
75
|
files:
|
58
|
-
-
|
76
|
+
- bin/cpan2tpkg
|
77
|
+
- bin/gem2tpkg
|
78
|
+
- bin/tpkg
|
79
|
+
- bin/tpkg_xml_to_yml
|
59
80
|
- lib/tpkg/deployer.rb
|
60
|
-
- lib/tpkg/thread_pool.rb
|
61
81
|
- lib/tpkg/metadata.rb
|
82
|
+
- lib/tpkg/thread_pool.rb
|
83
|
+
- lib/tpkg/versiontype.rb
|
62
84
|
- lib/tpkg.rb
|
63
|
-
-
|
85
|
+
- Rakefile
|
86
|
+
- schema/schema-1.0.5.yml
|
87
|
+
- schema/schema-1.0.6.yml
|
88
|
+
- schema/schema-1.0.7.yml
|
89
|
+
- schema/schema-1.0.8.yml
|
64
90
|
- schema/schema-1.0.9.yml
|
91
|
+
- schema/schema-1.0.yml
|
92
|
+
- schema/schema.yml
|
65
93
|
- schema/tpkg-1.0.0.dtd
|
66
|
-
- schema/tpkg-1.0.5.dtd
|
67
|
-
- schema/schema-1.0.7.yml
|
68
|
-
- schema/tpkg-1.0.9.dtd
|
69
|
-
- schema/tpkg.dtd
|
70
94
|
- schema/tpkg-1.0.1.dtd
|
71
|
-
- schema/tpkg-1.0.7.dtd
|
72
|
-
- schema/tpkg-1.0.3.dtd
|
73
|
-
- schema/schema.yml
|
74
95
|
- schema/tpkg-1.0.2.dtd
|
75
|
-
- schema/
|
76
|
-
- schema/
|
77
|
-
- schema/tpkg-1.0.
|
78
|
-
- schema/schema-1.0.8.yml
|
96
|
+
- schema/tpkg-1.0.3.dtd
|
97
|
+
- schema/tpkg-1.0.4.dtd
|
98
|
+
- schema/tpkg-1.0.5.dtd
|
79
99
|
- schema/tpkg-1.0.6.dtd
|
80
|
-
- schema/
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
- bin/tpkg_xml_to_yml
|
85
|
-
- Rakefile
|
100
|
+
- schema/tpkg-1.0.7.dtd
|
101
|
+
- schema/tpkg-1.0.8.dtd
|
102
|
+
- schema/tpkg-1.0.9.dtd
|
103
|
+
- schema/tpkg.dtd
|
86
104
|
has_rdoc: true
|
87
105
|
homepage: http://tpkg.sourceforge.net
|
88
106
|
licenses: []
|
@@ -93,21 +111,28 @@ rdoc_options: []
|
|
93
111
|
require_paths:
|
94
112
|
- lib
|
95
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
96
115
|
requirements:
|
97
116
|
- - ">="
|
98
117
|
- !ruby/object:Gem::Version
|
118
|
+
hash: 31
|
119
|
+
segments:
|
120
|
+
- 1
|
121
|
+
- 8
|
99
122
|
version: "1.8"
|
100
|
-
version:
|
101
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
102
125
|
requirements:
|
103
126
|
- - ">="
|
104
127
|
- !ruby/object:Gem::Version
|
128
|
+
hash: 3
|
129
|
+
segments:
|
130
|
+
- 0
|
105
131
|
version: "0"
|
106
|
-
version:
|
107
132
|
requirements: []
|
108
133
|
|
109
134
|
rubyforge_project: tpkg
|
110
|
-
rubygems_version: 1.3.
|
135
|
+
rubygems_version: 1.3.7
|
111
136
|
signing_key:
|
112
137
|
specification_version: 3
|
113
138
|
summary: tpkg Application Packaging & Deployment
|