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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
# file : bpkg/host-os-release.test.testscript
# license : MIT; see accompanying LICENSE file
: apt-cache-policy
:
{
test.arguments += apt-cache-policy
: basics
:
$* libssl3 libssl1.1 libssl-dev libsqlite5 libxerces-c-dev <<EOI 2>>EOE >>EOO
libssl3:
Installed: 3.0.7-1
Candidate: 3.0.7-2
Version table:
3.0.7-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 3.0.7-1 100
100 /var/lib/dpkg/status
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
libssl-dev:
Installed: 3.0.7-1
Candidate: 3.0.7-2
Version table:
3.0.7-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 3.0.7-1 100
100 /var/lib/dpkg/status
libxerces-c-dev:
Installed: (none)
Candidate: 3.2.4+debian-1
Version table:
3.2.4+debian-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
LC_ALL=C apt-cache policy --quiet libssl3 libssl1.1 libssl-dev libsqlite5 libxerces-c-dev
EOE
libssl3 '3.0.7-1' '3.0.7-2'
libssl1.1 '1.1.1n-0+deb11u3' '1.1.1n-0+deb11u3'
libssl-dev '3.0.7-1' '3.0.7-2'
libsqlite5 '' ''
libxerces-c-dev '' '3.2.4+debian-1'
EOO
: empty
:
$* libsqlite5 <:'' 2>>EOE >>EOO
LC_ALL=C apt-cache policy --quiet libsqlite5
EOE
libsqlite5 '' ''
EOO
: none-none
:
$* pulseaudio <<EOI 2>>EOE >>EOO
pulseaudio:
Installed: (none)
Candidate: (none)
Version table:
1:11.1-1ubuntu7.5 -1
500 http://au.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
1:11.1-1ubuntu7 -1
500 http://au.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
EOI
LC_ALL=C apt-cache policy --quiet pulseaudio
EOE
pulseaudio '' ''
EOO
}
: apt-cache-show
:
{
test.arguments += apt-cache-show
# Note: put Depends last to test folded/multiline parsing.
#
: basics
:
$* libssl1.1 1.1.1n-0+deb11u3 <<EOI 2>>EOE >>EOO
Package: libssl1.1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 4120
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1n-0+deb11u3
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Description-md5: 88547c6206c7fbc4fcc7d09ce100d210
Homepage: https://www.openssl.org/
Depends: libc6 (>= 2.25), debconf (>= 0.5) | debconf-2.0
EOI
LC_ALL=C apt-cache show --quiet libssl1.1=1.1.1n-0+deb11u3
EOE
libc6 (>= 2.25), debconf (>= 0.5) | debconf-2.0
EOO
: no-depends
:
$* libssl1.1 1.1.1n-0+deb11u3 <<EOI 2>>EOE >''
Package: libssl1.1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 4120
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1n-0+deb11u3
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Description-md5: 88547c6206c7fbc4fcc7d09ce100d210
Homepage: https://www.openssl.org/
EOI
LC_ALL=C apt-cache show --quiet libssl1.1=1.1.1n-0+deb11u3
EOE
}
: parse-name-value
:
{
test.arguments += parse-name-value
: basics
:
$* <<EOI >>EOO
libssl3 libssl-common libssl-doc libssl-dev libssl-dbg libssl-extras, libc6 libc-dev libc-common libc-doc, libz-dev
EOI
main: libssl3
dev: libssl-dev
doc: libssl-doc
dbg: libssl-dbg
common: libssl-common
extras: libssl-extras libc6 libc-dev libz-dev
EOO
: non-lib
:
$* <<EOI >>EOO
sqlite3 sqlite3-common sqlite3-doc
EOI
main: sqlite3
doc: sqlite3-doc
common: sqlite3-common
EOO
: lib-dev
:
$* <<EOI >>EOO
libssl-dev
EOI
dev: libssl-dev
EOO
: non-lib-dev
:
$* <<EOI >>EOO
ssl-dev
EOI
main: ssl-dev
EOO
: lib-custom-dev
:
$* <<EOI >>EOO
libfoo-dev libfoo-dev-dev
EOI
main: libfoo-dev
dev: libfoo-dev-dev
EOO
}
: main-from-dev
:
{
test.arguments += main-from-dev
: first
:
$* libssl-dev 3.0.7-1 <<EOI >'libssl3'
libssl3 (= 3.0.7-1), debconf (>= 0.5) | debconf-2.0
EOI
: not-first
:
$* libxerces-c-dev 3.2.4+debian-1 <<EOI >'libxerces-c3.2'
libc6-dev | libc-dev, libicu-dev, libxerces-c3.2 (= 3.2.4+debian-1)
EOI
: exact
:
$* libexpat1-dev 2.5.0-1 <<EOI >'libexpat1'
libexpat1 (= 2.5.0-1), libc6-dev | libc-dev
EOI
: not-stem
:
$* libcurl4-openssl-dev 7.87.0-2 <<EOI >''
libcurl4 (= 7.87.0-2)
EOI
}
|