apt-pkg 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64ee3a45dbc30e9944967e0da58f8c2297449ff1
|
|
4
|
+
data.tar.gz: 607e15266821d84ee6a1fd7f7c00b622c084794a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf82282038e9b15979d2e7da047eeacc2c9e81ffa245a5ff9774c527242b331dccfd20da8f453ca4f5453f99a1308fe953dcc7b733015c609ff8cac492deb69a
|
|
7
|
+
data.tar.gz: bc89b13bafcd051b1e2a0dee36eb0faa8cc3e84a8c761a491537d1c646745c1a5d9f72e1c4f7c3091a36d9da663526781653258c733fb97a7d9213226da3ee34
|
data/History.md
CHANGED
data/ext/apt_pkg/pkgcache.cpp
CHANGED
|
@@ -26,7 +26,7 @@ static VALUE
|
|
|
26
26
|
gen_caches(VALUE self)
|
|
27
27
|
{
|
|
28
28
|
if (!config_system_initialized()) {
|
|
29
|
-
|
|
29
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
30
30
|
}
|
|
31
31
|
pkgCacheFile CacheFile;
|
|
32
32
|
int res = CacheFile.BuildCaches(NULL, true);
|
|
@@ -46,7 +46,7 @@ static VALUE
|
|
|
46
46
|
update(VALUE self)
|
|
47
47
|
{
|
|
48
48
|
if (!config_system_initialized()) {
|
|
49
|
-
|
|
49
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
50
50
|
}
|
|
51
51
|
pkgCacheFile CacheFile;
|
|
52
52
|
// Get the source list
|
|
@@ -72,7 +72,7 @@ static VALUE
|
|
|
72
72
|
is_multi_arch(VALUE self)
|
|
73
73
|
{
|
|
74
74
|
if (!config_system_initialized()) {
|
|
75
|
-
|
|
75
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
76
76
|
}
|
|
77
77
|
pkgCacheFile CacheFile;
|
|
78
78
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -96,7 +96,7 @@ static VALUE
|
|
|
96
96
|
pkg_names(int argc, VALUE *argv, VALUE self)
|
|
97
97
|
{
|
|
98
98
|
if (!config_system_initialized()) {
|
|
99
|
-
|
|
99
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
100
100
|
}
|
|
101
101
|
if (argc > 1 || argc == 0) {
|
|
102
102
|
rb_raise(rb_eArgError, "You must give at least one search argument");
|
|
@@ -136,7 +136,7 @@ static VALUE
|
|
|
136
136
|
package_count(VALUE self)
|
|
137
137
|
{
|
|
138
138
|
if (!config_system_initialized()) {
|
|
139
|
-
|
|
139
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
140
140
|
}
|
|
141
141
|
pkgCacheFile CacheFile;
|
|
142
142
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -159,7 +159,7 @@ static VALUE
|
|
|
159
159
|
version_count(VALUE self)
|
|
160
160
|
{
|
|
161
161
|
if (!config_system_initialized()) {
|
|
162
|
-
|
|
162
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
163
163
|
}
|
|
164
164
|
pkgCacheFile CacheFile;
|
|
165
165
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -182,7 +182,7 @@ static VALUE
|
|
|
182
182
|
depends_count(VALUE self)
|
|
183
183
|
{
|
|
184
184
|
if (!config_system_initialized()) {
|
|
185
|
-
|
|
185
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
186
186
|
}
|
|
187
187
|
pkgCacheFile CacheFile;
|
|
188
188
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -205,7 +205,7 @@ static VALUE
|
|
|
205
205
|
package_file_count(VALUE self)
|
|
206
206
|
{
|
|
207
207
|
if (!config_system_initialized()) {
|
|
208
|
-
|
|
208
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
209
209
|
}
|
|
210
210
|
pkgCacheFile CacheFile;
|
|
211
211
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -228,7 +228,7 @@ static VALUE
|
|
|
228
228
|
ver_file_count(VALUE self)
|
|
229
229
|
{
|
|
230
230
|
if (!config_system_initialized()) {
|
|
231
|
-
|
|
231
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
232
232
|
}
|
|
233
233
|
pkgCacheFile CacheFile;
|
|
234
234
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -251,7 +251,7 @@ static VALUE
|
|
|
251
251
|
provides_count(VALUE self)
|
|
252
252
|
{
|
|
253
253
|
if (!config_system_initialized()) {
|
|
254
|
-
|
|
254
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
255
255
|
}
|
|
256
256
|
pkgCacheFile CacheFile;
|
|
257
257
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -274,7 +274,7 @@ static VALUE
|
|
|
274
274
|
group_count(VALUE self)
|
|
275
275
|
{
|
|
276
276
|
if (!config_system_initialized()) {
|
|
277
|
-
|
|
277
|
+
rb_raise(rb_eRuntimeError, "System not initialized");
|
|
278
278
|
}
|
|
279
279
|
pkgCacheFile CacheFile;
|
|
280
280
|
pkgCache *Cache = CacheFile.GetPkgCache();
|
|
@@ -4,14 +4,18 @@ describe Debian::AptPkg::PkgCache do
|
|
|
4
4
|
describe 'not init' do
|
|
5
5
|
describe '.update' do
|
|
6
6
|
it 'can be called' do
|
|
7
|
-
|
|
7
|
+
lambda do
|
|
8
|
+
Debian::AptPkg::PkgCache.update
|
|
9
|
+
end.must_raise RuntimeError
|
|
8
10
|
end
|
|
9
11
|
end
|
|
10
12
|
|
|
11
13
|
%i(package version depends package_file ver_file provides group).each do |m|
|
|
12
14
|
describe ".#{m}_count" do
|
|
13
15
|
it 'can be called' do
|
|
14
|
-
|
|
16
|
+
lambda do
|
|
17
|
+
Debian::AptPkg::PkgCache.public_send("#{m}_count")
|
|
18
|
+
end.must_raise RuntimeError
|
|
15
19
|
end
|
|
16
20
|
end
|
|
17
21
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apt-pkg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Laurent Arnoud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '10'
|
|
19
|
+
version: '10.3'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '10'
|
|
26
|
+
version: '10.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake-compiler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -77,7 +77,7 @@ files:
|
|
|
77
77
|
- ext/apt_pkg/pkgcache.h
|
|
78
78
|
- lib/debian/apt_pkg.rb
|
|
79
79
|
- lib/debian/apt_pkg/version.rb
|
|
80
|
-
- test/
|
|
80
|
+
- test/apt_pkg_cache_not_init_integration.rb
|
|
81
81
|
- test/apt_pkg_cache_test.rb
|
|
82
82
|
- test/apt_pkg_configuration_test.rb
|
|
83
83
|
- test/apt_pkg_test.rb
|
|
@@ -103,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 2.
|
|
106
|
+
rubygems_version: 2.5.1
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: Ruby interface to libapt-pkg
|
|
110
110
|
test_files: []
|
|
111
|
-
has_rdoc:
|