Imported Upstream version 3.0.2-20050403
Didier Raboud
13 years ago
0 | 0 |
/COPYING/3.1/Tue Jan 28 23:01:10 2003//Tfoomatic-3_0-branch
|
1 | |
/ChangeLog/3.99.2.23/Fri Jan 28 16:17:13 2005//Tfoomatic-3_0-branch
|
|
1 |
/ChangeLog/3.99.2.24/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
|
2 | 2 |
/Foomatic-Devel-Ideas.txt/3.2/Tue Apr 22 23:19:52 2003//Tfoomatic-3_0-branch
|
3 | 3 |
/Makefile.in/3.16.2.3/Fri Jan 28 16:17:13 2005//Tfoomatic-3_0-branch
|
4 | 4 |
/README/3.26.2.5/Tue Sep 14 21:08:37 2004//Tfoomatic-3_0-branch
|
|
16 | 16 |
/foomatic-compiledb.1.in/3.1/Thu Nov 28 02:42:26 2002//Tfoomatic-3_0-branch
|
17 | 17 |
/foomatic-compiledb.in/3.6.2.1/Tue Nov 30 14:29:43 2004//Tfoomatic-3_0-branch
|
18 | 18 |
/foomatic-configure.1.in/3.1/Thu Nov 28 02:42:26 2002//Tfoomatic-3_0-branch
|
19 | |
/foomatic-configure.in/3.18.2.2/Tue Nov 30 14:29:43 2004//Tfoomatic-3_0-branch
|
|
19 |
/foomatic-configure.in/3.18.2.3/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
|
20 | 20 |
/foomatic-filters-ppds-README/3.1/Sun Feb 23 07:14:18 2003//Tfoomatic-3_0-branch
|
21 | 21 |
/foomatic-filters-ppds-install/3.1/Sun Feb 23 07:14:18 2003//Tfoomatic-3_0-branch
|
22 | 22 |
/foomatic-fix-xml.in/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
|
|
0 |
2004-02-23 Till Kamppeter <till.kamppeter@gmx.net>
|
|
1 |
|
|
2 |
* foomatic-configure.in: Fixed bug of old non-Foomatic PPD not
|
|
3 |
overtaken when applying "foomatic-configure" to a queue without
|
|
4 |
specifying a PPD or a printer/driver pair.
|
|
5 |
|
|
6 |
* lib/Foomatic/DB.pm: When modifying PPD defaults for boolean
|
|
7 |
options "0" or "1" was written into the PPD file and not
|
|
8 |
"False" or "True".
|
|
9 |
|
0 | 10 |
2004-01-28 Till Kamppeter <till.kamppeter@gmx.net>
|
1 | 11 |
|
2 | 12 |
* makeDefaults.in, foomatic-cleanupdrivers.in: Allow use of an
|
254 | 254 |
$config->{'driver'} = "raw";
|
255 | 255 |
$config->{'printer'} = undef;
|
256 | 256 |
}
|
257 | |
if ($olddatablob->{'queuedata'}{'foomatic'}) {
|
258 | 257 |
# We do not need the queue data block any more
|
259 | 258 |
delete($olddatablob->{'queuedata'});
|
260 | 259 |
} else {
|
|
262 | 261 |
$olddatablob = undef;
|
263 | 262 |
}
|
264 | 263 |
} else {
|
265 | |
# No Foomatic/PPD data
|
266 | |
$olddatablob = undef;
|
267 | |
}
|
268 | |
} else {
|
269 | 264 |
# Load the datablob of the former configuration
|
270 | 265 |
if ($reconf) {
|
271 | |
if (($olddatablob = load_datablob($config->{'spooler'},
|
272 | |
$config->{'queue'})) &&
|
273 | |
($olddatablob->{'queuedata'}{'foomatic'})) {
|
274 | |
# We do not need the queue data block here
|
275 | |
delete($olddatablob->{'queuedata'});
|
|
266 |
if ($olddatablob = load_datablob($config->{'spooler'},
|
|
267 |
$config->{'queue'})) {
|
276 | 268 |
# If the user has supplied only a printer or only a driver
|
277 | 269 |
# fill in the second of the two fields in $config
|
278 | |
if (!$config->{'ppdfile'}) {
|
|
270 |
if ((!$config->{'ppdfile'}) &&
|
|
271 |
($olddatablob->{'queuedata'}{'foomatic'})) {
|
279 | 272 |
if ((!$config->{'driver'}) && ($config->{'printer'})) {
|
280 | 273 |
$config->{'driver'} = $olddatablob->{'driver'};
|
281 | 274 |
}
|
|
283 | 276 |
$config->{'printer'} = $olddatablob->{'id'};
|
284 | 277 |
}
|
285 | 278 |
}
|
|
279 |
# We do not need the queue data block here
|
|
280 |
delete($olddatablob->{'queuedata'});
|
286 | 281 |
} else {
|
287 | 282 |
$olddatablob = undef;
|
288 | 283 |
}
|
0 | |
/DB.pm/3.56.2.11/Sat Jan 22 23:20:58 2005//Tfoomatic-3_0-branch
|
|
0 |
/DB.pm/3.56.2.12/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
|
1 | 1 |
/PPD.pm/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
|
2 | 2 |
/UIElem.pm/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
|
3 | 3 |
D
|
14 | 14 |
use POSIX; # for rounding integers
|
15 | 15 |
use strict;
|
16 | 16 |
|
17 | |
my $ver = '$Revision: 3.56.2.11 $ ';
|
|
17 |
my $ver = '$Revision: 3.56.2.12 $ ';
|
18 | 18 |
|
19 | 19 |
# constructor for Foomatic::DB
|
20 | 20 |
sub new {
|
|
1357 | 1357 |
(lc($def) eq 'no') || (lc($def) eq 'false')) {
|
1358 | 1358 |
$def='False';
|
1359 | 1359 |
}
|
1360 | |
$def = checkoptionvalue($this->{'dat'}, $name, $def, 1);
|
|
1360 |
$def = (checkoptionvalue($this->{'dat'}, $name, $def, 1) ?
|
|
1361 |
'True' : 'False');
|
1361 | 1362 |
} elsif ($arg->{'type'} =~ /^(int|float)$/) {
|
1362 | 1363 |
if (defined($arg->{'cdefault'})) {
|
1363 | 1364 |
$def = $arg->{'cdefault'};
|