File: README

package info (click to toggle)
ruby-debian 0.3.9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid, stretch
  • size: 340 kB
  • ctags: 378
  • sloc: ruby: 2,835; fortran: 90; makefile: 42; cpp: 36
file content (55 lines) | stat: -rw-r--r-- 1,448 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
dpkg-ruby - Ruby interface modules for dpkg

/usr/bin/dpkg.rb   - dpkg like program (under development)
/usr/bin/dpkg-ruby - dpkg-awk clone
/usr/bin/dpkg-checkdeps.rb - check deb dependency problem

See also /usr/share/doc/libdpkg-ruby1.8/examples/

This program provides the following modules/class.
(old, to be rewritten)

 Debian::Dpkg module
  Dpkg.compare_versions(a,rel,b)
  Dpkg.architecture
  Dpkg.gnu_build_architecture
  Dpkg.installation_architecture

 Debian::DpkgDeb module
  DpkgDeb.deb?(file)
  DpkgDeb.control(file)
  DpkgDeb.data(file)
  DpkgDeb.load(file)

 Debian::Deb class - for *.deb 
  .package -> aString
  .source  -> aString
  .version -> aString
  .provides -> array of aString

  [field]  -> aString

  .unmet(aDebian::Packages) -> array of Debian::Dep::Unmet

 Debian::Dsc class - for *.dsc 
  .package -> aString
  .version -> aString
  .binary -> array of aString
  [field]  -> aString

 Debian::Archives class - parser of Packages,Sources
  + (aDebianArchives) -> aDebian::Archives
  .each {|pkgname, d| block }
  .each_key {|pkgname| block }

 Debian::Sources < Debian::Archives - parser of Sources
 Debian::Packages < Debian::Archives - parser of Packages
  [pkgname]  -> aDebianDeb
  .provides(pkgname) -> array of aDebian::Deb
 Debian::Status < Debian::Archives - parser of dpkg status


THANKS
 akira yamada <akira@debian.org> - ruby coding style suggestions

$Id: README,v 1.7 2001/04/27 21:42:12 ukai Exp $