]> err.no Git - dpkg/log
dpkg
16 years agoMerge branch 'stable'
Guillem Jover [Wed, 23 Jan 2008 07:02:06 +0000 (09:02 +0200)]
Merge branch 'stable'

Conflicts:

configure.ac
debian/changelog

16 years agoRelease 1.14.16.4
Guillem Jover [Wed, 23 Jan 2008 06:45:16 +0000 (08:45 +0200)]
Release 1.14.16.4

16 years agoDpkg::Cdata: Import capit from Dpkg::Fields
Guillem Jover [Wed, 23 Jan 2008 06:43:46 +0000 (08:43 +0200)]
Dpkg::Cdata: Import capit from Dpkg::Fields

Closes: #462172
16 years agoMerge branch 'stable'
Guillem Jover [Tue, 22 Jan 2008 22:02:49 +0000 (00:02 +0200)]
Merge branch 'stable'

Conflicts:

ChangeLog
configure.ac
debian/changelog

16 years agoRelease 1.14.16.3
Guillem Jover [Tue, 22 Jan 2008 21:40:55 +0000 (23:40 +0200)]
Release 1.14.16.3

16 years agos-s-d: Fix timeout computations for --retry option
Guillem Jover [Tue, 22 Jan 2008 21:36:06 +0000 (23:36 +0200)]
s-s-d: Fix timeout computations for --retry option

This has not worked properly for a long time (maybe never), but came to
light due to #460903's fix. Closes: #462104

16 years agoUpdated Swedish translation.
Peter Karlsson [Tue, 22 Jan 2008 20:42:14 +0000 (21:42 +0100)]
Updated Swedish translation.

16 years agos-s-d: Fix segfault when using --group w/o --chuid
Guillem Jover [Tue, 22 Jan 2008 19:43:35 +0000 (21:43 +0200)]
s-s-d: Fix segfault when using --group w/o --chuid

As a side effect, using --group alone works for the first time in years.
Closes: #462072
16 years agos-s-d: Properly set the supplementary groups on --chuid
Guillem Jover [Tue, 22 Jan 2008 19:20:49 +0000 (21:20 +0200)]
s-s-d: Properly set the supplementary groups on --chuid

Set the supplementary groups if the real user or group are different than
the ones we should switch to.

Closes: #462075
16 years agodpkg-parsechangelog(1): fix two typos
Raphael Hertzog [Tue, 22 Jan 2008 18:21:01 +0000 (19:21 +0100)]
dpkg-parsechangelog(1): fix two typos

* man/dpkg-parsechangelog.1: Fix typos reported by Helge Kreutzmann.
* man/po/*.po: Update all translations accordingly.

16 years agoRe-Complete and unfuzzy German man page translation (except dselect)
Helge Kreutzmann [Tue, 22 Jan 2008 18:05:32 +0000 (19:05 +0100)]
Re-Complete and unfuzzy German man page translation (except dselect)

16 years agoDisable variable substitution in dpkg-genchanges
Raphael Hertzog [Tue, 22 Jan 2008 17:49:24 +0000 (18:49 +0100)]
Disable variable substitution in dpkg-genchanges

* scripts/dpkg-genchanges.pl: Do not substitute variables on
the output.
* man/dpkg-genchanges.pl: Document this change.

16 years agoUpdate, unfuzzy and correct German scripts translation
Helge Kreutzmann [Tue, 22 Jan 2008 17:28:14 +0000 (18:28 +0100)]
Update, unfuzzy and correct German scripts translation
  *Completed dpkg-gensymbols.pl & dpkg-parsechangelog.pl
  *Fixed broken string
  *Add more translations
  *Unfuzzy

16 years agoRemove the IO layer ":utf8" that re-encodes in utf8
Raphael Hertzog [Tue, 22 Jan 2008 17:19:18 +0000 (18:19 +0100)]
Remove the IO layer ":utf8" that re-encodes in utf8

* scripts/dpkg-genchanges.pl, scripts/dpkg-gencontrol.pl,
scripts/dpkg-source.pl: Remove the IO-layer that converts to
UTF-8. It's not as smart as I expected.

16 years agoMerge branch 'stable'
Guillem Jover [Tue, 22 Jan 2008 11:30:49 +0000 (13:30 +0200)]
Merge branch 'stable'

Conflicts:

ChangeLog
configure.ac
debian/changelog

16 years agoRelease 1.14.16.2
Guillem Jover [Tue, 22 Jan 2008 11:05:46 +0000 (13:05 +0200)]
Release 1.14.16.2

16 years agoMove dpkg Breaks on dpkg-dev (= 1.14.13) and (= 1.14.14) to Conflicts
Guillem Jover [Tue, 22 Jan 2008 11:03:51 +0000 (13:03 +0200)]
Move dpkg Breaks on dpkg-dev (= 1.14.13) and (= 1.14.14) to Conflicts

So that users from etch can upgrade to sid (or lenny once dpkg has
migrated). Those Conflicts should be removed before lenny's release.

16 years agos-s-d: Change uid after changing gid and initalizing supplementary groups
Guillem Jover [Tue, 22 Jan 2008 10:57:43 +0000 (12:57 +0200)]
s-s-d: Change uid after changing gid and initalizing supplementary groups

Closes: #462018
16 years agodpkg-deb: Refactor fflush and its buggy fpos handling to safe_fflush()
Guillem Jover [Tue, 22 Jan 2008 08:49:49 +0000 (10:49 +0200)]
dpkg-deb: Refactor fflush and its buggy fpos handling to safe_fflush()

16 years agolibdpkg: Remove dead verrevcmp function
Guillem Jover [Tue, 22 Jan 2008 08:35:12 +0000 (10:35 +0200)]
libdpkg: Remove dead verrevcmp function

16 years agoUse offsetof() instead of ad-hoc calculations
Guillem Jover [Tue, 22 Jan 2008 08:31:32 +0000 (10:31 +0200)]
Use offsetof() instead of ad-hoc calculations

16 years agoCheck for 'stddef.h' in AC_CHECK_HEADERS
Guillem Jover [Tue, 22 Jan 2008 08:23:41 +0000 (10:23 +0200)]
Check for 'stddef.h' in AC_CHECK_HEADERS

16 years agoMerge branch 'stable'
Frank Lichtenheld [Mon, 21 Jan 2008 12:40:31 +0000 (13:40 +0100)]
Merge branch 'stable'

Conflicts:

ChangeLog
configure.ac
debian/changelog

16 years agodpkg-source: Fix "uninitialized value" warning
Frank Lichtenheld [Mon, 21 Jan 2008 12:20:54 +0000 (13:20 +0100)]
dpkg-source: Fix "uninitialized value" warning

16 years agoRelease 1.14.16.1
Frank Lichtenheld [Mon, 21 Jan 2008 11:55:46 +0000 (12:55 +0100)]
Release 1.14.16.1

16 years agoAdd libtimedate-perl to dpkg-dev's Depends and to Build-Depends
Frank Lichtenheld [Mon, 21 Jan 2008 11:51:56 +0000 (12:51 +0100)]
Add libtimedate-perl to dpkg-dev's Depends and to Build-Depends

* debian/control: Add libtimedate-perl to
dpkg-dev's Depends and to Build-Depends (for
build-time tests). This introduces our first
run-time dependency on a perl module not shipped
with Perl itself. But to me it seems not worth
trying to replace that code.

16 years agodselect: New key to set all selections back to what's currently installed
Colin Watson [Mon, 21 Jan 2008 09:19:01 +0000 (11:19 +0200)]
dselect: New key to set all selections back to what's currently installed

Closes: #151540
16 years agoUse m_malloc instead of malloc
Guillem Jover [Mon, 21 Jan 2008 08:48:27 +0000 (10:48 +0200)]
Use m_malloc instead of malloc

16 years agoReplace strdup plus error checking usage with a new m_strdup function
Guillem Jover [Mon, 21 Jan 2008 08:30:33 +0000 (10:30 +0200)]
Replace strdup plus error checking usage with a new m_strdup function

Closes: #379028
16 years agoBump version to 1.14.17~
Guillem Jover [Mon, 21 Jan 2008 08:12:34 +0000 (10:12 +0200)]
Bump version to 1.14.17~

16 years agoRelease 1.14.16
Guillem Jover [Mon, 21 Jan 2008 08:01:30 +0000 (10:01 +0200)]
Release 1.14.16

16 years agoAdd README.feature-removal-schedule and README.api
Guillem Jover [Mon, 21 Jan 2008 08:00:19 +0000 (10:00 +0200)]
Add README.feature-removal-schedule and README.api

16 years agoSomeone called the pedantic Changelog police?
Guillem Jover [Mon, 21 Jan 2008 06:46:12 +0000 (08:46 +0200)]
Someone called the pedantic Changelog police?

16 years agoUnfuzzy formerly completed translations now back to 928t
Guillem Jover [Mon, 21 Jan 2008 06:41:06 +0000 (08:41 +0200)]
Unfuzzy formerly completed translations now back to 928t

16 years agoRegenerate .pot files and merge .po files with them
Guillem Jover [Mon, 21 Jan 2008 06:30:24 +0000 (08:30 +0200)]
Regenerate .pot files and merge .po files with them

16 years agoEscape new lines in AC_CHECK_FUNCS
Guillem Jover [Mon, 21 Jan 2008 06:22:30 +0000 (08:22 +0200)]
Escape new lines in AC_CHECK_FUNCS

16 years agoFix incorrect sizeof in a memset call
Ian Jackson [Mon, 19 Nov 2007 20:19:36 +0000 (21:19 +0100)]
Fix incorrect sizeof in a memset call

16 years agoEnable -Wextra by default and disable annoying warnings
Guillem Jover [Mon, 21 Jan 2008 05:02:56 +0000 (07:02 +0200)]
Enable -Wextra by default and disable annoying warnings

16 years agos-s-d: Fix signed vs unsigned warning when comparing to getuid and getgid
Guillem Jover [Mon, 21 Jan 2008 05:02:04 +0000 (07:02 +0200)]
s-s-d: Fix signed vs unsigned warning when comparing to getuid and getgid

16 years agoMerge AC_CHECK_FUNCS macro calls
Guillem Jover [Mon, 21 Jan 2008 04:58:55 +0000 (06:58 +0200)]
Merge AC_CHECK_FUNCS macro calls

16 years agoUse external gettext intl library
Guillem Jover [Mon, 21 Jan 2008 03:34:29 +0000 (05:34 +0200)]
Use external gettext intl library

When porting to other systems without gettext functionality, other
applications might need it as well, so either use --with-libintl-prefix
for a global library, or disable NLS support.

16 years agoActivate Russian translation for scripts
Guillem Jover [Mon, 21 Jan 2008 03:14:35 +0000 (05:14 +0200)]
Activate Russian translation for scripts

16 years agos-s-d: Refactor max open fd into a new function and coalesce close loop
Guillem Jover [Mon, 21 Jan 2008 02:25:33 +0000 (04:25 +0200)]
s-s-d: Refactor max open fd into a new function and coalesce close loop

16 years agos-s-d(8): Fix quotation to get rid of a space between -c option and comma
Guillem Jover [Mon, 21 Jan 2008 02:07:57 +0000 (04:07 +0200)]
s-s-d(8): Fix quotation to get rid of a space between -c option and comma

16 years agoSwitch Maintainer address to <debian-dpkg@lists.debian.org>
Guillem Jover [Sun, 20 Jan 2008 21:47:59 +0000 (23:47 +0200)]
Switch Maintainer address to <debian-dpkg@lists.debian.org>

16 years agoCoalesce matching options into a new section in s-s-d(8)
Guillem Jover [Sun, 20 Jan 2008 03:08:40 +0000 (05:08 +0200)]
Coalesce matching options into a new section in s-s-d(8)

16 years agos-s-d: Change from 'Mandatory' to 'Matching' in --help output
Guillem Jover [Sun, 20 Jan 2008 03:06:32 +0000 (05:06 +0200)]
s-s-d: Change from 'Mandatory' to 'Matching' in --help output

Suggested by Justin Pryzby.

16 years agodpkg-buildpackage: Move most functions to end of file
Frank Lichtenheld [Sun, 20 Jan 2008 00:06:05 +0000 (01:06 +0100)]
dpkg-buildpackage: Move most functions to end of file

* scripts/dpkg-buildpackage.pl: Move most functions to
end of file to allow better reading of the program flow.
This is a remnant of the shell script past.

16 years agodpkg-checkbuilddeps: fix a bug in handling of build-conflicts
Raphael Hertzog [Sat, 19 Jan 2008 22:11:22 +0000 (23:11 +0100)]
dpkg-checkbuilddeps: fix a bug in handling of build-conflicts

16 years agodpkg-buildpackage: use parse_changelog() instead of calling dpkg-parsechangelog
Raphael Hertzog [Sat, 19 Jan 2008 18:00:00 +0000 (19:00 +0100)]
dpkg-buildpackage: use parse_changelog() instead of calling dpkg-parsechangelog

16 years agoUpdate .pot and .po files for dpkg-dev
Frank Lichtenheld [Sat, 19 Jan 2008 17:48:16 +0000 (18:48 +0100)]
Update .pot and .po files for dpkg-dev

* dpkg-dev.pot: Regenerated.
* *.po: Merged with dpkg-dev.pot.

16 years agoRemove removed utils/enoent.c from POTFILES.in
Frank Lichtenheld [Sat, 19 Jan 2008 17:32:03 +0000 (18:32 +0100)]
Remove removed utils/enoent.c from POTFILES.in

16 years agoFix many syserr(), warning(), error() and subprocerr() calls in Dpkg::Shlibs::*
Raphael Hertzog [Fri, 18 Jan 2008 18:16:53 +0000 (19:16 +0100)]
Fix many syserr(), warning(), error() and subprocerr() calls in Dpkg::Shlibs::*

16 years agoAdd support of wildcard entries in symbols files
Raphael Hertzog [Fri, 18 Jan 2008 18:04:25 +0000 (19:04 +0100)]
Add support of wildcard entries in symbols files

* scripts/Dpkg/Shlibs/SymbolFile.pm (load): Parse *@<version> symbols names as
wildcards and not as regular symbols.
* scripts/Dpkg/Shlibs/SymbolFile.pm (merge_symbols): Use information
provided by wildcards entries when new symbols are added.
* scripts/dpkg-gensymbols.pl: Disable some checks which can't be done when
symbols files have been generated with the help of wildcard entries.
* man/dpkg-gensymbols.1: Update the manual page to explain how to use
wildcard entries.

16 years agoFix error handling in changelog/debian.pl
Frank Lichtenheld [Fri, 18 Jan 2008 14:02:58 +0000 (15:02 +0100)]
Fix error handling in changelog/debian.pl

* scripts/changelog/debian.pl: Don't hide failures
inside eval().
* scripts/Dpkg/Changelog.pm (data2rfc822): Don't fail
if argument is undef.

16 years agodpkg-genchanges: some code refactoring to simplify the code
Raphael Hertzog [Wed, 16 Jan 2008 09:08:14 +0000 (10:08 +0100)]
dpkg-genchanges: some code refactoring to simplify the code

* scripts/dpkg-genchanges.pl: Some code refactoring. Also fix the
generation of the Description field to not have duplicate description
in case of udeb (a single description per binary package is enough).

16 years agodpkg-genchanges: Enhance logic to decide if we include the original tarball
Raphael Hertzog [Mon, 14 Jan 2008 22:16:32 +0000 (23:16 +0100)]
dpkg-genchanges: Enhance logic to decide if we include the original tarball

* scripts/dpkg-genchanges.pl: Change logic of -si option to
include the original tarball only if the current upstream version differs
from the upstream version of the previous changelog entry. Lack of previous
entry also results in the inclusion of the original tarball.

16 years agoIntegrated dpkg-parsechangelog processing into Dpkg::Changelog::parse_changelog()
Raphael Hertzog [Mon, 14 Jan 2008 21:39:48 +0000 (22:39 +0100)]
Integrated dpkg-parsechangelog processing into Dpkg::Changelog::parse_changelog()

* scripts/Dpkg/Changelog.pm (parse_changelog): Rewrite it completely
to not call dpkg-parsechangelog but do the work of this program by itself.
* scripts/dpkg-parsechangelog.pl: Rewrote it to use the enhanced
parse_changelog() function.
* scripts/dpkg-genchanges.pl, script/dpkg-gencontrol.pl: Adapted to use
the modified parse_changelog().
* scripts/dpkg-gensymbols.pl, scripts/dpkg-source.pl: Likewise.

16 years agoDo not use backticks inside double quotes in m4 files
Guillem Jover [Fri, 18 Jan 2008 07:25:02 +0000 (09:25 +0200)]
Do not use backticks inside double quotes in m4 files

Fix portability issues with ancient shells on HP-UX. Closes: #24514

16 years agoDemote dselect from priority important to optional
Guillem Jover [Fri, 18 Jan 2008 06:52:54 +0000 (08:52 +0200)]
Demote dselect from priority important to optional

Closes: #461327
16 years agos-s-d: Clarify in help output that --name is one of the required options
Guillem Jover [Fri, 18 Jan 2008 06:37:07 +0000 (08:37 +0200)]
s-s-d: Clarify in help output that --name is one of the required options

Closes: #354999
16 years agoconfigure.ac: Add missing quotes to AC_CHECK_SIZEOF calls
Guillem Jover [Fri, 18 Jan 2008 05:20:38 +0000 (07:20 +0200)]
configure.ac: Add missing quotes to AC_CHECK_SIZEOF calls

16 years agoTHANKS: Add all the people that have contributed until now
Guillem Jover [Fri, 18 Jan 2008 05:07:55 +0000 (07:07 +0200)]
THANKS: Add all the people that have contributed until now

16 years agoAdditionally check if errno is EEXIST after rmdir(2)
Guillem Jover [Fri, 18 Jan 2008 04:41:21 +0000 (06:41 +0200)]
Additionally check if errno is EEXIST after rmdir(2)

SUSv3 specifies that on non-empty directories it can either return
that or ENOTEMPTY. This should fix run time problems on Solaris.

16 years agou-a: Remove unimplemented --test option
Guillem Jover [Fri, 18 Jan 2008 03:07:13 +0000 (05:07 +0200)]
u-a: Remove unimplemented --test option

Closes: #392432, #461247
16 years agos-s-d: Add missing semicolon
Guillem Jover [Thu, 17 Jan 2008 22:52:35 +0000 (00:52 +0200)]
s-s-d: Add missing semicolon

16 years agoTHANKS: Convert to UTF-8
Guillem Jover [Thu, 17 Jan 2008 04:28:50 +0000 (06:28 +0200)]
THANKS: Convert to UTF-8

16 years agos-s-d: Move version output from --help to --version
Guillem Jover [Thu, 17 Jan 2008 04:14:43 +0000 (06:14 +0200)]
s-s-d: Move version output from --help to --version

16 years agoUpdate TODO list
Guillem Jover [Thu, 17 Jan 2008 04:07:38 +0000 (06:07 +0200)]
Update TODO list

16 years agodpkg-source: Don't use any substvarsfile by default
Raphael Hertzog [Thu, 17 Jan 2008 08:08:48 +0000 (09:08 +0100)]
dpkg-source: Don't use any substvarsfile by default

* scripts/dpkg-source.pl: Revert to the old behaviour of not using any
substvars file.
* man/dpkg-source.1: Fix the default value of the -T option.

16 years agodpkg-genchanges: Reinstate support of the ${Format} substvar
Raphael Hertzog [Thu, 17 Jan 2008 08:01:37 +0000 (09:01 +0100)]
dpkg-genchanges: Reinstate support of the ${Format} substvar

* scripts/dpkg-genchanges.pl: As documented by deb-substvars(5), one can
use the ${Format} substvar to override the format of the .changes file.

16 years agos-s-d: Check uid and gid before calling setuid, setgid and initgroups
Guillem Jover [Thu, 17 Jan 2008 02:17:27 +0000 (04:17 +0200)]
s-s-d: Check uid and gid before calling setuid, setgid and initgroups

Based on a patch by Samuel Thibault. Closes: #222524

16 years agoUpdated Swedish scripts translation.
Peter Karlsson [Wed, 16 Jan 2008 14:12:02 +0000 (15:12 +0100)]
Updated Swedish scripts translation.

16 years agoFix input semantics of Debian changelog parser
Frank Lichtenheld [Wed, 16 Jan 2008 12:15:07 +0000 (13:15 +0100)]
Fix input semantics of Debian changelog parser

* scripts/changelog/debian.pl: Restore the old
default behaviour to parse STDIN. Also fix the -l
option to specify a label for the parsed input, but
the actual file. Still allow --file to be used for
that. Use the new inhandle option of parse() to pass
STDIN directly. This should be faster and removes
the implicit dependency on IO::String.

16 years agoDpkg::Changelog: Allow input to come directly from a filehandle
Frank Lichtenheld [Wed, 16 Jan 2008 12:08:51 +0000 (13:08 +0100)]
Dpkg::Changelog: Allow input to come directly from a filehandle

* scripts/Dpkg/Changelog/Debian.pm (parse): Accept input in
configuration item 'inhandle'. Allow to override the name of
the file (used for reporting) with configuration item
'reportfile'.
* scripts/Dpkg/Changelog.pm (init): Call parse if
'inhandle' is given.

16 years agoFix one format string
Frank Lichtenheld [Wed, 16 Jan 2008 12:01:50 +0000 (13:01 +0100)]
Fix one format string

* scripts/dpkg-parsechangelog.pl: Remove one superfluous
%s from a formatstring which was used to output $! before
syserr() was used instead.

16 years agoAdd build-essential to dpkg-dev Recommends
Guillem Jover [Wed, 16 Jan 2008 07:21:45 +0000 (09:21 +0200)]
Add build-essential to dpkg-dev Recommends

16 years agos-s-d: Make --quiet silence --test
Guillem Jover [Wed, 16 Jan 2008 06:12:20 +0000 (08:12 +0200)]
s-s-d: Make --quiet silence --test

Closes: #367998
16 years agos-s-d: Keep retrying even if the daemon removed the pidfile
Guillem Jover [Wed, 16 Jan 2008 05:55:32 +0000 (07:55 +0200)]
s-s-d: Keep retrying even if the daemon removed the pidfile

Closes: #460903
16 years agos-s-d: Fix indentation
Guillem Jover [Wed, 16 Jan 2008 05:49:19 +0000 (07:49 +0200)]
s-s-d: Fix indentation

16 years agoUse the perl POSIX module instead of the enoent helper binary
Guillem Jover [Tue, 15 Jan 2008 08:09:03 +0000 (10:09 +0200)]
Use the perl POSIX module instead of the enoent helper binary

16 years agoUse NULL instead of 0
Guillem Jover [Wed, 9 Jan 2008 04:24:11 +0000 (06:24 +0200)]
Use NULL instead of 0

16 years agodpkg-shlibdeps: handle the case where the same binary is listed multiple times
Raphael Hertzog [Tue, 15 Jan 2008 09:43:28 +0000 (10:43 +0100)]
dpkg-shlibdeps: handle the case where the same binary is listed multiple times

* scripts/dpkg-shlibdeps.pl: When the same binary is passed
several times as parameters (associated to different fields),
associate it to the most important field.

16 years agodpkg-shlibdeps: Fix filtering of duplicated deps in fields of lesser priority
Raphael Hertzog [Tue, 15 Jan 2008 08:02:56 +0000 (09:02 +0100)]
dpkg-shlibdeps: Fix filtering of duplicated deps in fields of lesser priority

* scripts/dpkg-shlibdeps.pl (filter_deps): Fix filtering of
duplicated dependencies in fields of lesser priority. Dependencies
coming from shlibs files have no associated version and this case
wasn't handled properly.

16 years agoGive some hints to Perl on the use of UTF-8 for output
Raphael Hertzog [Fri, 11 Jan 2008 18:14:15 +0000 (19:14 +0100)]
Give some hints to Perl on the use of UTF-8 for output

* scripts/dpkg-genchanges.pl, scripts/dpkg-gencontrol.pl,
scripts/dpkg-source.pl: Hint Perl into using UTF-8 for output
on *.dsc, *.changes and DEBIAN/control files. Updated some open() calls
for more consistency and added binmode() calls for filehandles that
handle only binary data.

16 years agoFix spelling error
Christian Perrier [Mon, 14 Jan 2008 20:13:33 +0000 (21:13 +0100)]
Fix spelling error

16 years agoRussian translation for scripts. Closes: #460709
Christian Perrier [Mon, 14 Jan 2008 19:21:45 +0000 (20:21 +0100)]
Russian translation for scripts. Closes: #460709

16 years agoRussian translation update. Closes: #460708
Christian Perrier [Mon, 14 Jan 2008 18:39:00 +0000 (19:39 +0100)]
Russian translation update. Closes: #460708

16 years agoDpkg::Fields: Change set_field_importance() into a method of Dpkg::Fields::Object
Raphael Hertzog [Sun, 13 Jan 2008 21:03:28 +0000 (22:03 +0100)]
Dpkg::Fields: Change set_field_importance() into a method of Dpkg::Fields::Object

* scripts/Dpkg/Fields.pm: Drop public function
set_fields_importance() in favor of a method on
Dpkg::Fields::Object. Integrate public function
sort_field_by_importance() in the output() method where it was
used.
* scripts/Dpkg/Changelog.pm, scripts/dpkg-genchanges.pl,
scripts/dpkg-gencontrol.pl, scripts/dpkg-source.pl: Updated to use
the set_field_importance() method instead of the removed function.
* scripts/Dpkg/Control.pm: Update pod documentation to refer to
Dpkg::Fields::Object instead of the invalid Dpkg::Cdata::Object.

16 years agoDpkg::Fields::Object: Support filehandles and strings for output and dump
Frank Lichtenheld [Sun, 13 Jan 2008 17:07:15 +0000 (18:07 +0100)]
Dpkg::Fields::Object: Support filehandles and strings for output and dump

* scripts/Dpkg/Fields.pm (dump): Allow to omit the
filehandle argument. If the function is called in
non-void context, also remove the printed string
to the caller. Together this avoids having to fiddle
with filehandles if the caller doesn't want to.
(output): Likewise.
* scripts/Dpkg/Changelog.pm (data2rfc822): Simplify
using this new behaviour.

16 years ago600_Dpkg_Changelog.t: Add more tests
Frank Lichtenheld [Sun, 13 Jan 2008 15:38:28 +0000 (16:38 +0100)]
600_Dpkg_Changelog.t: Add more tests

* scripts/t/600_Dpkg_Changelog.t: Add a new changelog
'fields' that tests the handling of the different fields
in the dpkg format.

16 years agoDpkg::Changelog::Debian: Don't separate forced Xs- fields from normal ones
Frank Lichtenheld [Sun, 13 Jan 2008 15:35:40 +0000 (16:35 +0100)]
Dpkg::Changelog::Debian: Don't separate forced Xs- fields from normal ones

16 years agoDpkg::Changelog: Use Dpkg::Fields for field handling
Frank Lichtenheld [Sun, 13 Jan 2008 15:03:39 +0000 (16:03 +0100)]
Dpkg::Changelog: Use Dpkg::Fields for field handling

* scripts/Dpkg/Changelog.pm: Replace all field hashes
with Dpkg::Changelog::Entry objects.
(Dpkg::Changelog::Entry): Base on Dpkg::Fields::Object.
(data2rfc822): Use Dpkg::Fields::Object->output and fix
handling of user-defined fields.
(data2rfc822_mult): Merge into data2rfc822 (autodetect
whether the argument is an object or an array of object).
* scripts/Dpkg/Changelog/Debian.pm: Adapt for
Dpkg::Changelog::Entry changes.
* scripts/t/600_Dpkg_Changelog.t: Likewise.

16 years agodpkg-parsechangelog(1): Document the new parser options
Frank Lichtenheld [Sun, 13 Jan 2008 12:25:16 +0000 (13:25 +0100)]
dpkg-parsechangelog(1): Document the new parser options

16 years agodpkg-shlibdeps(1): Fix a typo
Raphael Hertzog [Sat, 12 Jan 2008 17:43:12 +0000 (18:43 +0100)]
dpkg-shlibdeps(1): Fix a typo

16 years agoComplete German translation of manpages (except dselect) again
Helge Kreutzmann [Sat, 12 Jan 2008 17:28:30 +0000 (18:28 +0100)]
Complete German translation of manpages (except dselect) again

16 years agoUpdated Galician translation
Jacobo Tarrio [Sat, 12 Jan 2008 12:30:09 +0000 (12:30 +0000)]
Updated Galician translation

16 years agoAdd a missing bug closure in changelog
Raphael Hertzog [Sat, 12 Jan 2008 00:19:21 +0000 (01:19 +0100)]
Add a missing bug closure in changelog

16 years agoAdd support of Dm-Upload-Allowed field
Raphael Hertzog [Fri, 11 Jan 2008 23:21:17 +0000 (00:21 +0100)]
Add support of Dm-Upload-Allowed field

* scripts/Dpkg/Fields.pm, scripts/dpkg-source.pl: Add support of
Dm-Upload-Allowed field. It automatically ends up in the dsc.

16 years agoDefine list of valid debian/control fields in Dpkg::Fields
Raphael Hertzog [Fri, 11 Jan 2008 23:13:15 +0000 (00:13 +0100)]
Define list of valid debian/control fields in Dpkg::Fields

* scripts/Dpkg/Fields.pm: Define variables containing
authoritative list of fields for debian/control (one for source
stanza, one for package stanza).
* scripts/dpkg-genchanges.pl, scripts/dpkg-gencontrol.pl,
scripts/dpkg-source.pl: Use the new variables to properly ignore
valid fields. Some related cleanup.