ruby-debian 0.3.8
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.
- data/Makefile +47 -0
- data/README +55 -0
- data/TODO +29 -0
- data/bin/dpkg-checkdeps +163 -0
- data/bin/dpkg-ruby +148 -0
- data/debian/changelog +310 -0
- data/debian/compat +1 -0
- data/debian/control +56 -0
- data/debian/copyright +26 -0
- data/debian/dirs +2 -0
- data/debian/manpages +0 -0
- data/debian/ruby-debian.docs +3 -0
- data/debian/ruby-debian.examples +1 -0
- data/debian/ruby-debian.manpages +2 -0
- data/debian/rules +15 -0
- data/debian/source/format +1 -0
- data/examples/ONE_LINER +39 -0
- data/examples/dpkg.rb +95 -0
- data/examples/list_packages.rb +38 -0
- data/examples/unmet_packages.rb +39 -0
- data/ext/debian_version/Version.cpp +43 -0
- data/ext/debian_version/extconf.rb +7 -0
- data/lib/debian.rb +1063 -0
- data/lib/debian/ar.rb +159 -0
- data/lib/debian/utils.rb +111 -0
- data/man/dpkg-checkdeps.1 +102 -0
- data/man/dpkg-ruby.1 +99 -0
- data/t/d/available +492 -0
- data/t/d/non-US_sid_Sources +32 -0
- data/t/d/non-US_sid_i386_Packages +50 -0
- data/t/d/sid_Sources +287 -0
- data/t/d/sid_i386_Packages +456 -0
- data/t/d/status +324 -0
- data/t/d/w3m-ssl_0.2.1-1.f +24 -0
- data/t/d/w3m-ssl_0.2.1-2.dsc +12 -0
- data/t/d/w3m-ssl_0.2.1-2.f +24 -0
- data/t/d/w3m_0.2.1-1.dsc +12 -0
- data/t/d/w3m_0.2.1-1.f +21 -0
- data/t/d/w3m_0.2.1-2.dsc +12 -0
- data/t/d/w3m_0.2.1-2.f +21 -0
- data/t/d/w3m_met_list +83 -0
- data/t/testall.rb +50 -0
- data/t/testar.rb +59 -0
- data/t/testarchives.rb +277 -0
- data/t/testdeb.rb +239 -0
- data/t/testdep.rb +70 -0
- data/t/testdepterm.rb +140 -0
- data/t/testdepunmet.rb +71 -0
- data/t/testdpkg.rb +197 -0
- data/t/testdpkgdeb.rb +83 -0
- data/t/testdsc.rb +49 -0
- data/t/testfield.rb +155 -0
- data/t/testpackages.rb +138 -0
- data/t/testsources.rb +44 -0
- data/t/teststatus.rb +38 -0
- metadata +133 -0
data/Makefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
#
|
2
|
+
# Makefile
|
3
|
+
#
|
4
|
+
SHELL = /bin/sh
|
5
|
+
RUBY = ruby
|
6
|
+
FRUBY = ruby
|
7
|
+
RM = rm
|
8
|
+
#### Start of system configuration section. ####
|
9
|
+
prefix = $(DESTDIR)/usr
|
10
|
+
bindir = $(prefix)/bin
|
11
|
+
libdir = $(prefix)/lib/ruby/$(shell $(RUBY) -rrbconfig -e 'puts Config::CONFIG["ruby_version"]')
|
12
|
+
mandir = $(DESTDIR)/usr/share/man
|
13
|
+
bins = $(wildcard bin/*)
|
14
|
+
libs = $(wildcard lib/*.rb)
|
15
|
+
libs_debian = $(wildcard lib/debian/*.rb)
|
16
|
+
man1 = $(wildcard man/*.1)
|
17
|
+
|
18
|
+
all:
|
19
|
+
clean:
|
20
|
+
@-(cd t; rm -f test.log)
|
21
|
+
distclean: clean
|
22
|
+
realclean: distclean
|
23
|
+
|
24
|
+
install:
|
25
|
+
@$(FRUBY) -r ftools -e 'File::makedirs(*ARGV)' $(bindir)
|
26
|
+
@$(FRUBY) -r ftools -e 'File::makedirs(*ARGV)' $(libdir)
|
27
|
+
@for b in $(bins); do \
|
28
|
+
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0755, true)' \
|
29
|
+
$$b $(bindir); \
|
30
|
+
done
|
31
|
+
@for rb in $(libs); do \
|
32
|
+
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
|
33
|
+
$$rb $(libdir); \
|
34
|
+
done
|
35
|
+
@mkdir $(libdir)/debian/
|
36
|
+
@for rb in $(libs_debian); do \
|
37
|
+
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
|
38
|
+
$$rb $(libdir)/debian; \
|
39
|
+
done
|
40
|
+
@mkdir -p $(mandir)/man1
|
41
|
+
@for m in $(man1); do \
|
42
|
+
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' \
|
43
|
+
$$m $(mandir)/man1; \
|
44
|
+
done
|
45
|
+
|
46
|
+
test:
|
47
|
+
@(cd t; $(RUBY) testall.rb -o test.log)
|
data/README
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
dpkg-ruby - Ruby interface modules for dpkg
|
2
|
+
|
3
|
+
/usr/bin/dpkg.rb - dpkg like program (under development)
|
4
|
+
/usr/bin/dpkg-ruby - dpkg-awk clone
|
5
|
+
/usr/bin/dpkg-checkdeps.rb - check deb dependency problem
|
6
|
+
|
7
|
+
See also /usr/share/doc/libdpkg-ruby1.8/examples/
|
8
|
+
|
9
|
+
This program provides the following modules/class.
|
10
|
+
(old, to be rewritten)
|
11
|
+
|
12
|
+
Debian::Dpkg module
|
13
|
+
Dpkg.compare_versions(a,rel,b)
|
14
|
+
Dpkg.architecture
|
15
|
+
Dpkg.gnu_build_architecture
|
16
|
+
Dpkg.installation_architecture
|
17
|
+
|
18
|
+
Debian::DpkgDeb module
|
19
|
+
DpkgDeb.deb?(file)
|
20
|
+
DpkgDeb.control(file)
|
21
|
+
DpkgDeb.data(file)
|
22
|
+
DpkgDeb.load(file)
|
23
|
+
|
24
|
+
Debian::Deb class - for *.deb
|
25
|
+
.package -> aString
|
26
|
+
.source -> aString
|
27
|
+
.version -> aString
|
28
|
+
.provides -> array of aString
|
29
|
+
|
30
|
+
[field] -> aString
|
31
|
+
|
32
|
+
.unmet(aDebian::Packages) -> array of Debian::Dep::Unmet
|
33
|
+
|
34
|
+
Debian::Dsc class - for *.dsc
|
35
|
+
.package -> aString
|
36
|
+
.version -> aString
|
37
|
+
.binary -> array of aString
|
38
|
+
[field] -> aString
|
39
|
+
|
40
|
+
Debian::Archives class - parser of Packages,Sources
|
41
|
+
+ (aDebianArchives) -> aDebian::Archives
|
42
|
+
.each {|pkgname, d| block }
|
43
|
+
.each_key {|pkgname| block }
|
44
|
+
|
45
|
+
Debian::Sources < Debian::Archives - parser of Sources
|
46
|
+
Debian::Packages < Debian::Archives - parser of Packages
|
47
|
+
[pkgname] -> aDebianDeb
|
48
|
+
.provides(pkgname) -> array of aDebian::Deb
|
49
|
+
Debian::Status < Debian::Archives - parser of dpkg status
|
50
|
+
|
51
|
+
|
52
|
+
THANKS
|
53
|
+
akira yamada <akira@debian.org> - ruby coding style suggestions
|
54
|
+
|
55
|
+
$Id: README,v 1.7 2001/04/27 21:42:12 ukai Exp $
|
data/TODO
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
TODO
|
2
|
+
|
3
|
+
official release
|
4
|
+
performance tuning
|
5
|
+
slow!
|
6
|
+
more/better APIs
|
7
|
+
dpkg-deb APIs
|
8
|
+
conflicts checks
|
9
|
+
cleanup APIs
|
10
|
+
debian.rb -> debian/dpkg.rb ?
|
11
|
+
documentation
|
12
|
+
manual? info? RD?
|
13
|
+
useful samples
|
14
|
+
grep-dctrl.rb ?
|
15
|
+
|
16
|
+
remove /usr/bin/dpkg dependency
|
17
|
+
compare_versions
|
18
|
+
*architecture
|
19
|
+
|
20
|
+
remove ar,tar,gunzip dependency
|
21
|
+
gunzip -> libzlib-ruby
|
22
|
+
tar -> ??
|
23
|
+
|
24
|
+
test/test suites
|
25
|
+
-> more test
|
26
|
+
|
27
|
+
support old deb format?
|
28
|
+
|
29
|
+
$Id: TODO,v 1.11 2001/04/27 21:42:12 ukai Exp $
|
data/bin/dpkg-checkdeps
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
#
|
3
|
+
# dpkg-checkdeps - utilities to check deb dependency
|
4
|
+
# Copyright (c) 2001 Fumitoshi UKAI <ukai@debian.or.jp>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or modify
|
7
|
+
# it under the terms of the GNU General Public License as published by
|
8
|
+
# the Free Software Foundation; either version 2 of the License, or
|
9
|
+
# (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#
|
20
|
+
# $Id: dpkg-checkdeps.rb,v 1.6 2001/05/15 18:16:26 ukai Exp $
|
21
|
+
#
|
22
|
+
|
23
|
+
require 'debian'
|
24
|
+
require 'getoptlong'
|
25
|
+
include Debian
|
26
|
+
|
27
|
+
opts = GetoptLong.new(["--to", "-t", GetoptLong::REQUIRED_ARGUMENT],
|
28
|
+
["--check", "-c", GetoptLong::NO_ARGUMENT],
|
29
|
+
["--from", "-f", GetoptLong::REQUIRED_ARGUMENT],
|
30
|
+
["--arch", "-a", GetoptLong::REQUIRED_ARGUMENT],
|
31
|
+
["--all", "-A", GetoptLong::NO_ARGUMENT],
|
32
|
+
["--verbose", "-v", GetoptLong::NO_ARGUMENT],
|
33
|
+
["--quiet", "-q", GetoptLong::NO_ARGUMENT],
|
34
|
+
["--help", "-h", GetoptLong::NO_ARGUMENT])
|
35
|
+
|
36
|
+
$quiet = false
|
37
|
+
$verbose = false
|
38
|
+
arch = Dpkg.installation_architecture
|
39
|
+
def usage
|
40
|
+
puts "Usage: #{$0} [opts] [{packagename|package}...]"
|
41
|
+
puts " #{$0} [--to <Packages>] --from <Packages> <packagename> ..."
|
42
|
+
puts " #{$0} [--to <Packages>] --from <Packages> -A"
|
43
|
+
puts " #{$0} [--to <Packages>] <packagefile>..."
|
44
|
+
puts " #{$0} [--to <Packages>] --check <packagename>"
|
45
|
+
end
|
46
|
+
|
47
|
+
$stdout.sync = true
|
48
|
+
to_packages = nil
|
49
|
+
from_packages = nil
|
50
|
+
check_inset = false
|
51
|
+
|
52
|
+
begin
|
53
|
+
opts.each {|opt, arg|
|
54
|
+
case opt
|
55
|
+
when "--to" then
|
56
|
+
if to_packages == nil
|
57
|
+
to_packages = Packages.new
|
58
|
+
end
|
59
|
+
arg.gsub!(/\$ARCH/,arch)
|
60
|
+
Dir[arg].each {|p|
|
61
|
+
print "* Loading target #{p}..." if $verbose
|
62
|
+
to_packages += Packages.new(p)
|
63
|
+
print "done\n" if $verbose
|
64
|
+
}
|
65
|
+
when "--from" then
|
66
|
+
if from_packages == nil
|
67
|
+
from_packages = Packages.new
|
68
|
+
end
|
69
|
+
arg.gsub!(/\$ARCH/,arch)
|
70
|
+
Dir[arg].each {|p|
|
71
|
+
print "* Loading source #{p}..." if $verbose
|
72
|
+
from_packages += Packages.new(p)
|
73
|
+
print "done\n" if $verbose
|
74
|
+
}
|
75
|
+
when "--arch" then
|
76
|
+
arch = arg
|
77
|
+
print "* Architecture: #{arch}\n" if $verbose
|
78
|
+
when "--all" then
|
79
|
+
if from_packages == nil
|
80
|
+
$stderr.puts "#{$0}: --all requires --from option"
|
81
|
+
raise GetoptLong::InvalidOption
|
82
|
+
end
|
83
|
+
from_packages.pkgnames {|p|
|
84
|
+
ARGV.push(p)
|
85
|
+
}
|
86
|
+
when "--check" then
|
87
|
+
check_inset = true
|
88
|
+
when "--verbose" then $verbose = true
|
89
|
+
when "--quiet" then $quiet = true
|
90
|
+
when "--help" then usage; exit 0
|
91
|
+
else raise GetoptLong::InvalidOption
|
92
|
+
end
|
93
|
+
}
|
94
|
+
rescue GetoptLong::InvalidOption
|
95
|
+
usage; exit 1
|
96
|
+
end
|
97
|
+
|
98
|
+
if to_packages == nil
|
99
|
+
print "* Loading target (dpkg status)..." if $verbose
|
100
|
+
to_packages = Status.new
|
101
|
+
print "done\n" if $verbose
|
102
|
+
end
|
103
|
+
if check_inset && from_packages == nil
|
104
|
+
from_packages = to_packages
|
105
|
+
end
|
106
|
+
|
107
|
+
check_packages = to_packages
|
108
|
+
check_debs = []
|
109
|
+
while arg = ARGV.shift
|
110
|
+
if from_packages == nil
|
111
|
+
deb = DpkgDeb.load(arg)
|
112
|
+
else
|
113
|
+
deb = from_packages[arg]
|
114
|
+
end
|
115
|
+
if deb == nil
|
116
|
+
$stderr.puts "E: Package: #{arg} not found"
|
117
|
+
exit 1
|
118
|
+
end
|
119
|
+
if deb['architecture'] != arch && deb['architecture'] != 'all'
|
120
|
+
next
|
121
|
+
end
|
122
|
+
check_debs.push(deb)
|
123
|
+
check_packages[deb.package] = deb
|
124
|
+
end
|
125
|
+
|
126
|
+
unmets = 0
|
127
|
+
mets = 0
|
128
|
+
num = 0
|
129
|
+
if check_inset
|
130
|
+
to_packages.each_package {|deb|
|
131
|
+
print "* Checking #{deb}\n" if $verbose
|
132
|
+
num += 1
|
133
|
+
safe = true
|
134
|
+
deb.deps('depends').each {|dep|
|
135
|
+
check_debs.each {|cdeb|
|
136
|
+
if dep.include?(cdeb) && ! dep.satisfy?(cdeb)
|
137
|
+
puts "E: #{deb} does not satisfy #{dep} against #{cdeb}"
|
138
|
+
unmets += 1
|
139
|
+
safe = false
|
140
|
+
end
|
141
|
+
}
|
142
|
+
}
|
143
|
+
if safe
|
144
|
+
mets += 1
|
145
|
+
end
|
146
|
+
}
|
147
|
+
else
|
148
|
+
check_debs.each {|deb|
|
149
|
+
print "* Checking #{deb}\n" if $verbose
|
150
|
+
num += 1
|
151
|
+
safe = true
|
152
|
+
deb.unmet(check_packages).each {|u|
|
153
|
+
puts u
|
154
|
+
unmets += 1
|
155
|
+
safe = false
|
156
|
+
}
|
157
|
+
if safe
|
158
|
+
mets += 1
|
159
|
+
end
|
160
|
+
}
|
161
|
+
end
|
162
|
+
puts "#{num} packages: #{unmets} unmet in #{num - mets} packages / #{mets} packages ok" unless $quiet
|
163
|
+
exit (unmets == 0 ? 0 : 1)
|
data/bin/dpkg-ruby
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
#
|
3
|
+
# dpkg-ruby - ruby script to parse status,available and Packages,Sources
|
4
|
+
# dpkg-awk clone
|
5
|
+
# Copyright (c) 2001 Fumitoshi UKAI <ukai@debian.or.jp>
|
6
|
+
#
|
7
|
+
# This program is free software; you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation; either version 2 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program; if not, write to the Free Software
|
19
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
20
|
+
#
|
21
|
+
# $Id: dpkg-ruby,v 1.6 2001/04/20 19:07:00 ukai Exp $
|
22
|
+
#
|
23
|
+
|
24
|
+
require 'debian'
|
25
|
+
require 'getoptlong'
|
26
|
+
|
27
|
+
filename = Debian::Dpkg::STATUS_FILE
|
28
|
+
$debug = 0
|
29
|
+
sortfield = []
|
30
|
+
numfield = []
|
31
|
+
$rec_sep = ""
|
32
|
+
|
33
|
+
def usage
|
34
|
+
$stderr.puts "#{$0} [opts] 'field:regexp' .. -- 'output_field' .."
|
35
|
+
$stderr.puts " opts: [-f file] [-d nn] [-s sf] [-n nf] [-rs rs]"
|
36
|
+
end
|
37
|
+
|
38
|
+
opts = GetoptLong.new(
|
39
|
+
["--file", "-f", GetoptLong::REQUIRED_ARGUMENT],
|
40
|
+
["--debug", "-d", GetoptLong::OPTIONAL_ARGUMENT],
|
41
|
+
["--sort", "-s", GetoptLong::REQUIRED_ARGUMENT],
|
42
|
+
["--numeric_field", "-n", GetoptLong::REQUIRED_ARGUMENT],
|
43
|
+
["--rec_sep", "--rs", GetoptLong::REQUIRED_ARGUMENT],
|
44
|
+
["--help", "-h", GetoptLong::NO_ARGUMENT])
|
45
|
+
opts.ordering = GetoptLong::REQUIRE_ORDER
|
46
|
+
|
47
|
+
begin
|
48
|
+
opts.each {|opt, arg|
|
49
|
+
case opt
|
50
|
+
when "--file" then filename = arg
|
51
|
+
when "--debug" then
|
52
|
+
if arg
|
53
|
+
$debug = arg
|
54
|
+
else
|
55
|
+
$debug += 1
|
56
|
+
end
|
57
|
+
when "--sort" then
|
58
|
+
sortfield += arg.split(" ").collect{|a| a.split(",")}
|
59
|
+
sortfield.flatten!
|
60
|
+
when "--numeric_field" then
|
61
|
+
numfield += arg.split(" ").collect{|a| a.split(",")}
|
62
|
+
numfield.flatten!
|
63
|
+
when "--rec_sep" then
|
64
|
+
$rec_sep = arg
|
65
|
+
when "--help" then
|
66
|
+
usage; exit 0
|
67
|
+
else
|
68
|
+
opts.terminate
|
69
|
+
end
|
70
|
+
}
|
71
|
+
rescue GetoptLong::InvalidOption
|
72
|
+
usage; exit 1
|
73
|
+
end
|
74
|
+
|
75
|
+
field = {}
|
76
|
+
$outputfield = []
|
77
|
+
while arg = ARGV.shift
|
78
|
+
break if arg == "--"
|
79
|
+
unless /^([^:]+):(.*)/ =~ arg
|
80
|
+
$stderr.puts "E: invalid argument #{arg}"
|
81
|
+
exit 1
|
82
|
+
end
|
83
|
+
field[$1] = Regexp.new($2)
|
84
|
+
end
|
85
|
+
$outputfield = ARGV
|
86
|
+
|
87
|
+
da = Debian::Archives.load(filename)
|
88
|
+
|
89
|
+
def output(deb)
|
90
|
+
if $outputfield.empty?
|
91
|
+
deb.fields {|f|
|
92
|
+
puts "#{f.capitalize}: #{deb[f]}"
|
93
|
+
}
|
94
|
+
puts $rec_sep
|
95
|
+
elsif $outputfield[0] == '^'
|
96
|
+
deb.fields {|f|
|
97
|
+
unless $outputfield.find {|of| of.capitalize == f.capitalize }
|
98
|
+
puts "#{f.capitalize}: #{deb[f]}"
|
99
|
+
end
|
100
|
+
}
|
101
|
+
puts $rec_sep
|
102
|
+
else
|
103
|
+
$outputfield.each {|f|
|
104
|
+
puts "#{f.capitalize}: #{deb[f]}"
|
105
|
+
}
|
106
|
+
if $rec_sep != "" || $outputfield.length > 1
|
107
|
+
puts $rec_sep
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
mp = []
|
113
|
+
da.each_package {|d|
|
114
|
+
match = true
|
115
|
+
field.each {|f,re|
|
116
|
+
unless re =~ d[f]
|
117
|
+
match = false
|
118
|
+
break
|
119
|
+
end
|
120
|
+
}
|
121
|
+
if match
|
122
|
+
if sortfield.empty?
|
123
|
+
output(d)
|
124
|
+
else
|
125
|
+
mp.push(d)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
}
|
129
|
+
|
130
|
+
unless sortfield.empty?
|
131
|
+
mp.sort{|a,b|
|
132
|
+
d = 0
|
133
|
+
sortfield.each{|sf|
|
134
|
+
if numfield.include?(sf)
|
135
|
+
d = a[sf].to_i <=> b[sf].to_i
|
136
|
+
else
|
137
|
+
d = a[sf] <=> b[sf]
|
138
|
+
end
|
139
|
+
if d != 0
|
140
|
+
break
|
141
|
+
end
|
142
|
+
}
|
143
|
+
d
|
144
|
+
}.each {|d|
|
145
|
+
output(d)
|
146
|
+
}
|
147
|
+
end
|
148
|
+
|
data/debian/changelog
ADDED
@@ -0,0 +1,310 @@
|
|
1
|
+
ruby-debian (0.3.8) unstable; urgency=low
|
2
|
+
|
3
|
+
* rename package to ruby-debian for new Ruby library package
|
4
|
+
naming standards
|
5
|
+
* rename git repository and move to collab-maint
|
6
|
+
* convert debian/copyright to DEP5 format
|
7
|
+
- the license text says version 2 or any later version so point to
|
8
|
+
the GPL-2 file instead of the symlink
|
9
|
+
* correct hyphens in man page
|
10
|
+
* remove unused debian/dh_ruby and debian/fixshbang.sh
|
11
|
+
|
12
|
+
-- Ryan Niebur <ryan@debian.org> Tue, 20 Dec 2011 19:29:23 -0800
|
13
|
+
|
14
|
+
dpkg-ruby (0.3.7) unstable; urgency=low
|
15
|
+
|
16
|
+
[ Francesco Poli (t1000) ]
|
17
|
+
* add file name to broken archive exception (Closes: #590146)
|
18
|
+
|
19
|
+
[ Ryan Niebur ]
|
20
|
+
* close files once they're parsed (Closes: #585448)
|
21
|
+
* Run dh-make-ruby and tweak things:
|
22
|
+
- policy 3.9.2
|
23
|
+
- move everything into dpkg-ruby package, the rest become
|
24
|
+
transitional
|
25
|
+
- simplified debian/rules
|
26
|
+
|
27
|
+
-- Ryan Niebur <ryan@debian.org> Sun, 04 Sep 2011 14:01:11 -0700
|
28
|
+
|
29
|
+
dpkg-ruby (0.3.6+nmu1) unstable; urgency=high
|
30
|
+
|
31
|
+
* Non-maintainer upload.
|
32
|
+
* Use StringValuePtr instead of the long-deprecated (and removed in ruby
|
33
|
+
1.9.1) STR2CSTR (closes: #593025).
|
34
|
+
|
35
|
+
-- Julien Cristau <jcristau@debian.org> Thu, 26 Aug 2010 17:43:59 +0200
|
36
|
+
|
37
|
+
dpkg-ruby (0.3.6) unstable; urgency=low
|
38
|
+
|
39
|
+
* switch to ruby 1.9.1 (Closes: #565848)
|
40
|
+
|
41
|
+
-- Ryan Niebur <ryan@debian.org> Fri, 29 Jan 2010 23:22:11 -0800
|
42
|
+
|
43
|
+
dpkg-ruby (0.3.5) unstable; urgency=low
|
44
|
+
|
45
|
+
* fix some file leaks (Closes: #564117)
|
46
|
+
|
47
|
+
-- Ryan Niebur <ryan@debian.org> Sat, 09 Jan 2010 04:29:00 -0800
|
48
|
+
|
49
|
+
dpkg-ruby (0.3.4) unstable; urgency=low
|
50
|
+
|
51
|
+
* add myself to d/copyright, thanks to Barry deFreese
|
52
|
+
* move Build-Depends-Indep to Build-Depends (Closes: #563450)
|
53
|
+
|
54
|
+
-- Ryan Niebur <ryan@debian.org> Sun, 03 Jan 2010 12:12:44 -0800
|
55
|
+
|
56
|
+
dpkg-ruby (0.3.3) unstable; urgency=low
|
57
|
+
|
58
|
+
* adopt package (Closes: #532927)
|
59
|
+
* add Vcs-* fields
|
60
|
+
* fix parsing .deb files, thanks to Junichi Uekawa (Closes: #390262)
|
61
|
+
* stop using regexps for lists of packages, that doesn't work for
|
62
|
+
large numbers (Closes: #552125)
|
63
|
+
* rewrite compare_versions to use C bindings to apt-pkg instead of
|
64
|
+
forking a dpkg process. this also makes the package arch:any.
|
65
|
+
(closes: #390332, #432269)
|
66
|
+
* fix README path and move it to libdpkg-ruby1.8 (Closes: 389273)
|
67
|
+
* set Standards-Version to 3.8.3
|
68
|
+
* clean up a bit, use dh7, etc
|
69
|
+
* add a ruby1.9 package (Closes: #528471)
|
70
|
+
* if running 'tar -t', filter stderr to remove 'Record size = foo
|
71
|
+
blocks' lines
|
72
|
+
|
73
|
+
-- Ryan Niebur <ryan@debian.org> Fri, 01 Jan 2010 21:11:48 -0800
|
74
|
+
|
75
|
+
dpkg-ruby (0.3.2) unstable; urgency=low
|
76
|
+
|
77
|
+
* man/dpkg-checkdeps. fix typo 'packges'
|
78
|
+
closes: Bug#351000
|
79
|
+
* man/dpkg-ruby.1. fix typos
|
80
|
+
closes: Bug#351001
|
81
|
+
* man/dpkg.rb.1. fix typo.
|
82
|
+
closes: Bug#351002
|
83
|
+
* rename programs without .rb suffixes
|
84
|
+
dpkg.rb is shipped as an example only.
|
85
|
+
closes: Bug#220934
|
86
|
+
* stop building ruby1.6 module
|
87
|
+
closes: Bug#366583
|
88
|
+
* lib/debian.rb: pkgs_re_escape()
|
89
|
+
fix package names with '+' characters cause errors
|
90
|
+
closes: Bug#366202
|
91
|
+
* lib/debian.rb: fix wrong instance variable usage
|
92
|
+
debian.rb:712: warning: instance variable @file not initialized
|
93
|
+
closes: Bug#272760
|
94
|
+
|
95
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 12 May 2006 02:40:56 +0900
|
96
|
+
|
97
|
+
dpkg-ruby (0.3.1) unstable; urgency=low
|
98
|
+
|
99
|
+
* lib/debian.rb: preserve @info['Description']
|
100
|
+
* fix description. closes: Bug#192815
|
101
|
+
|
102
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Wed, 11 Aug 2004 00:28:35 +0900
|
103
|
+
|
104
|
+
dpkg-ruby (0.3.0) unstable; urgency=low
|
105
|
+
|
106
|
+
* ruby1.8 transision
|
107
|
+
* multi packaged: libdpkg-ruby1.8 and libdpkg-ruby1.6
|
108
|
+
* lib/debian.rb: define Hash.values_at for ruby1.6
|
109
|
+
paren for args for ruby1.8
|
110
|
+
use .class instead of .type for ruby1.8
|
111
|
+
use Hash.values_at instead of Hash.indexes for ruby1.8
|
112
|
+
* lib/debian/ar.rb: paren for args for ruby1.8
|
113
|
+
* lib/debian/utils.rb: waitpid
|
114
|
+
redirect by using IO.reopen instead of assignment to $std*
|
115
|
+
paren for args for ruby1.8
|
116
|
+
* t: fix test program for both ruby1.6 and ruby1.8
|
117
|
+
|
118
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Wed, 8 Oct 2003 02:10:23 +0900
|
119
|
+
|
120
|
+
dpkg-ruby (0.2.4) unstable; urgency=low
|
121
|
+
|
122
|
+
* Makefile: fix to use $(RUBY) instead of ruby
|
123
|
+
closes: Bug#209156
|
124
|
+
|
125
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 8 Sep 2003 13:53:33 +0900
|
126
|
+
|
127
|
+
dpkg-ruby (0.2.3) unstable; urgency=low
|
128
|
+
|
129
|
+
* depends on ruby1.6
|
130
|
+
|
131
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 8 Sep 2003 00:16:03 +0900
|
132
|
+
|
133
|
+
dpkg-ruby (0.2.2) unstable; urgency=low
|
134
|
+
|
135
|
+
* s/ControlError/FieldError/ closes: Bug#165622
|
136
|
+
|
137
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 26 Oct 2002 03:15:06 +0900
|
138
|
+
|
139
|
+
dpkg-ruby (0.2.1) unstable; urgency=low
|
140
|
+
|
141
|
+
* fix for new ruby 1.6.6
|
142
|
+
|
143
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 6 Jan 2002 23:42:50 +0900
|
144
|
+
|
145
|
+
dpkg-ruby (0.2) unstable; urgency=low
|
146
|
+
|
147
|
+
* (lib/debian.rb)
|
148
|
+
add Debian::Dep::Term#kind_of?
|
149
|
+
add Debian::Deb#deps(relation_field)
|
150
|
+
* (bin/dpkg-checkdeps.rb) add --check
|
151
|
+
* (man/dpkg-checkdeps.rb.1) add --check
|
152
|
+
|
153
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Wed, 16 May 2001 02:41:46 +0900
|
154
|
+
|
155
|
+
dpkg-ruby (0.1.1) unstable; urgency=low
|
156
|
+
|
157
|
+
* fix typo in examples
|
158
|
+
|
159
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Thu, 3 May 2001 00:11:16 +0900
|
160
|
+
|
161
|
+
dpkg-ruby (0.1) unstable; urgency=low
|
162
|
+
|
163
|
+
* Initial Release. closes: Bug#94378
|
164
|
+
|
165
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 29 Apr 2001 01:59:19 +0900
|
166
|
+
|
167
|
+
dpkg-ruby (0.0.9.3) unstable; urgency=low
|
168
|
+
|
169
|
+
* Release Candidate 2
|
170
|
+
* (lib/debian.rb)
|
171
|
+
Deb.unmet takes relation fields parameter
|
172
|
+
* (bin/dpkg-checkdeps.rb)
|
173
|
+
fix --from wildcard
|
174
|
+
|
175
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 28 Apr 2001 06:41:54 +0900
|
176
|
+
|
177
|
+
dpkg-ruby (0.0.9.2) unstable; urgency=low
|
178
|
+
|
179
|
+
* (bin/dpkg-checkdeps.rb)
|
180
|
+
support wildcard for --to and --from arguments
|
181
|
+
|
182
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 28 Apr 2001 04:33:33 +0900
|
183
|
+
|
184
|
+
dpkg-ruby (0.0.9.1) unstable; urgency=low
|
185
|
+
|
186
|
+
* don't raise exception when E: duplicate package entry
|
187
|
+
* (bin/dpkg-checkdeps.rb)
|
188
|
+
- performance tuning
|
189
|
+
- change -a option for --arch
|
190
|
+
- -A option for --all
|
191
|
+
|
192
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 28 Apr 2001 04:09:01 +0900
|
193
|
+
|
194
|
+
dpkg-ruby (0.0.9) unstable; urgency=low
|
195
|
+
|
196
|
+
* Release Candidate 1
|
197
|
+
* add dpkg-checkdeps.rb
|
198
|
+
* separate debian/utils.rb (gunzip, tar, [pipeline])
|
199
|
+
OK (130/130 tests 4563 asserts)
|
200
|
+
|
201
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 28 Apr 2001 01:29:11 +0900
|
202
|
+
|
203
|
+
dpkg-ruby (0.0.8.1) unstable; urgency=HIGH
|
204
|
+
|
205
|
+
* missing install debian/ar.rb
|
206
|
+
|
207
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 27 Apr 2001 12:33:45 +0900
|
208
|
+
|
209
|
+
dpkg-ruby (0.0.8) unstable; urgency=low
|
210
|
+
|
211
|
+
* add Debian::Ar
|
212
|
+
* Debian::DpkgDeb.{pipeline,gunzip,tar}
|
213
|
+
OK (132/132 tests 4564 asserts)
|
214
|
+
|
215
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 27 Apr 2001 05:00:17 +0900
|
216
|
+
|
217
|
+
dpkg-ruby (0.0.7) unstable; urgency=low
|
218
|
+
|
219
|
+
* Debian::DpkgDeb.load
|
220
|
+
* Debian::Deb
|
221
|
+
- filename
|
222
|
+
- control,controlFile,controlData
|
223
|
+
- data,dataFile,dataData
|
224
|
+
- sys_tarfile
|
225
|
+
OK (129/129 tests 4512 asserts)
|
226
|
+
|
227
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Tue, 24 Apr 2001 02:30:06 +0900
|
228
|
+
|
229
|
+
dpkg-ruby (0.0.6) unstable; urgency=low
|
230
|
+
|
231
|
+
* module Control -> Field
|
232
|
+
* SELECTION_ID, EFLAG_ID, STATUS_ID -> Debian::Deb
|
233
|
+
* fix dpkg.rb.1
|
234
|
+
|
235
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 23 Apr 2001 01:43:45 +0900
|
236
|
+
|
237
|
+
dpkg-ruby (0.0.5) unstable; urgency=low
|
238
|
+
|
239
|
+
* (bin/{dpkg-ruby, dpkg.rb}): rescue GetoptLong::InvalidOption
|
240
|
+
* add/cleanup APIs
|
241
|
+
- Debian::Control.maintainer
|
242
|
+
- Debian::Archives.load
|
243
|
+
- Debian::Deb.*? - status, selection test
|
244
|
+
* add dpkg.rb.1
|
245
|
+
OK (117/117 tests 4472 asserts)
|
246
|
+
|
247
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 22 Apr 2001 04:18:35 +0900
|
248
|
+
|
249
|
+
dpkg-ruby (0.0.4.1) unstable; urgency=HIGH
|
250
|
+
|
251
|
+
* fix broken /usr/bin/dpkg-ruby, /usr/bin/dpkg.rb
|
252
|
+
|
253
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 21 Apr 2001 02:32:38 +0900
|
254
|
+
|
255
|
+
dpkg-ruby (0.0.4) unstable; urgency=low
|
256
|
+
|
257
|
+
* add several APIs
|
258
|
+
- Debian::Dpkg.{status,selections,avail,listfiles,search}
|
259
|
+
- Debian::Deb.files
|
260
|
+
- Debian::Archives.packages
|
261
|
+
- Debian::Status
|
262
|
+
* deleyed parse
|
263
|
+
- make test => OK (OK (98/98 tests 4436 asserts)
|
264
|
+
* add /usr/bin/dpkg.rb
|
265
|
+
|
266
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Sat, 21 Apr 2001 01:51:38 +0900
|
267
|
+
|
268
|
+
dpkg-ruby (0.0.3) unstable; urgency=low
|
269
|
+
|
270
|
+
* add test suites using rubyunit
|
271
|
+
- make test => OK (87/87 tests 359 asserts)
|
272
|
+
* fix several bugs found with rubyunit
|
273
|
+
|
274
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 20 Apr 2001 09:29:03 +0900
|
275
|
+
|
276
|
+
dpkg-ruby (0.0.2) unstable; urgency=low
|
277
|
+
|
278
|
+
* (lib/debian.rb)
|
279
|
+
- fix typo in Dpkg.*architecture()
|
280
|
+
- change Dpkg.info -> Dpkg.field
|
281
|
+
- Debian::Control.parse -> parseFields
|
282
|
+
- simplify Debian::Dep.to_s, suggested by akira yamada <akira@debian.org>
|
283
|
+
- use NotImplementedError, suggested by akira yamada <akira@debian.org>
|
284
|
+
- fix '<<', '>>'
|
285
|
+
* fix dependency to ruby version
|
286
|
+
|
287
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Thu, 19 Apr 2001 22:35:22 +0900
|
288
|
+
|
289
|
+
dpkg-ruby (0.0.1) unstable; urgency=low
|
290
|
+
|
291
|
+
* apply suggestions from akira yamada <akira@debian.org>
|
292
|
+
- Exception -> StandardError to catch rescue without args
|
293
|
+
- remove Dpkg. prefix in module Dpkg, use module_function
|
294
|
+
* module Debian
|
295
|
+
- all modules, classes are in Debian module, API change
|
296
|
+
* add several method for Debian::Archives: +,-,&,<<,>>, ...
|
297
|
+
* add bin/dpkg-ruby -- dpkg-awk clone
|
298
|
+
* add man/dpkg-ruby.1
|
299
|
+
* add Debian::Dpkg.*architecture module functions
|
300
|
+
* update examples/*
|
301
|
+
|
302
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Thu, 19 Apr 2001 19:25:32 +0900
|
303
|
+
|
304
|
+
dpkg-ruby (0.0) unstable; urgency=low
|
305
|
+
|
306
|
+
* Initial Release. closes: Bug#94378
|
307
|
+
|
308
|
+
-- Fumitoshi UKAI <ukai@debian.or.jp> Thu, 19 Apr 2001 01:23:25 +0900
|
309
|
+
|
310
|
+
|