Guillem Jover [Fri, 4 May 2007 01:22:56 +0000 (01:22 +0000)]
* scripts/dpkg-architecture.pl: Use get_valid_arches instead of
directly using @os and @cpu variables.
($pkgdatadir): Change from a 'my' to an 'our' variable.
(@cpu, @os, %cputable, %ostable, %cputable_re, %ostable_re,
read_cputable, read_ostable, split_debian, debian_to_gnu,
split_gnu, gnu_to_debian): Move to ...
* scripts/controllib.pl: ... here.
($pkgdatadir): Declare as 'our'.
(get_valid_arches): New function.
Guillem Jover [Fri, 4 May 2007 00:29:22 +0000 (00:29 +0000)]
* scripts/update-alternatives.pl: Call read_link_group also in
'install' mode, but do not exit nor print an error if the link goup
file does not exist.
Guillem Jover [Tue, 1 May 2007 21:42:53 +0000 (21:42 +0000)]
* scripts/update-alternatives.pl: Move the ENOENT errno check from
the if conditionals to the block body to avoid comparing against an
undef value on the next elsif conditional.
* Makefile.am (man.stamp): Use a stamp file for now until po4a
supports them internally.
(all-local): Depend on man.stamp.
(clean-local): Remove the man.stamp file.
* scripts/controllib.pl (get_host_arch): New function.
(findarch): Rename to ...
(init_substvar_arch): ... this. Use get_host_arch to set the substvar.
Fix all callers.
(parsedep): Use get_host_arch instead of directly calling
dpkg-architecture.
* scripts/dpkg-genchanges.pl: Use '$host_arch' instead of '$arch'.
(init_substvar_arch): Delay call until after init_substvars.
* scripts/dpkg-gencontrol.pl: Likewise.
Nicolas FRANCOIS [Wed, 28 Mar 2007 21:32:23 +0000 (21:32 +0000)]
Revert revision 691 (Add support for PAM sessions in start-stop-daemon.)
With daemons (i.e. except when --background is used), the session is
closed too early.
#376165 and #406942 will be tagged wontfix.
Thanks to Guillem Jover for noticing.
Guillem Jover [Wed, 21 Mar 2007 21:45:46 +0000 (21:45 +0000)]
Show the epoch (if present) when displaying package versions. Closes: #107449, #179913, #345594, #393924, #405668
Based on a patch by Jeffrey W. Baker.
Guillem Jover [Tue, 27 Feb 2007 22:59:16 +0000 (22:59 +0000)]
Fix regular expression special-casing Origin, Bugs and Maintainer fields
which was making X[SBC]- fields containing such strings to propagate into
the .deb control file unprocessed. Thanks to Colin Watson.
Guillem Jover [Sat, 17 Feb 2007 20:08:53 +0000 (20:08 +0000)]
* scripts/dpkg-source.pl (checkstats): Take '$dscdir' as an explicit
argument. Fix all callers.
(checktype): Take '$dir', '$fn' and '$type' as explicit arguments. Fix
all callers.
Guillem Jover [Sat, 17 Feb 2007 18:06:17 +0000 (18:06 +0000)]
* scripts/update-alternatives.pl: Check if '$alink' is defined before
using '$aslavelinkcount{$alink}'. Only read_link_group if '$mode' is
not 'install'.
($dataread): Remove now unused variable.
(read_link_group): New function (refactored).
(find_best_version): Likewise.
(display_link_group): Likewise.
(list_link_group): Likewise.
(config_all): Move exit to outside the function.
Guillem Jover [Sun, 11 Feb 2007 23:14:25 +0000 (23:14 +0000)]
* scripts/controllib.pl (outputclose): Change argument from a boolean
to an optional filename argument. Fix all callers.
(parsecontrolfile): Take '$controlfile' as an explicit argument.
Fix all callers.
(parsesubstvars): Take '$varlistfile' as an explicit argument.
Fix all callers.
(parsechangelog): Take '$changelogfile' as an explicit argument,
'$changelogformat' and '$since' as optional arguments. Fix all
callers.
(setsourcepackage): Take '$v' as an explicit argument.
Guillem Jover [Wed, 24 Jan 2007 01:59:30 +0000 (01:59 +0000)]
Convert 822-date to be a simple wrapper around 'date -R'. 822-date is
now deprecated and should not be used anymore. It might be removed
sometime in the future. Closes: #31634, #367712, #314462
Thanks to Frank Lichtenheld.
Guillem Jover [Thu, 11 Jan 2007 23:59:42 +0000 (23:59 +0000)]
Do not bail out in dpkg when building without start-stop-daemon support,
by checking if the macro value is true instead of it being defined.
Thanks to Mark Rosenstand.
Guillem Jover [Thu, 11 Jan 2007 12:16:51 +0000 (12:16 +0000)]
Move retrieval of uid and gid information from controllib.pl into a
function, so that scripts not needing it do not execute that code.
Based on a patch by Riku Voipio. Closes: #396884