summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2009-10-31Move header/trailer checks in Dpkg::Changelog::Entry::DebianRaphaël Hertzog2-30/+63
2009-10-31Dpkg::Changelog::Entry::Debian: parse changes lines as set of itemsRaphaël Hertzog1-0/+37
The function get_change_items() reintroduce the feature that parsed the changes as a set of items describing individual changes. Furthermore it parses attribution lines (“[ Name ]”) as separate items.
2009-10-31Drop compatibility with old changelog parsers (as planned)Raphaël Hertzog2-20/+3
2009-10-31Move parse_changelog() to a separate module Dpkg::Changelog::ParseRaphaël Hertzog10-139/+182
Despite its name, this function does not actuallay parse anything by itself, it just calls external parsers and returns their result. This interface is largely used by other tools and is not tied with any of the other Dpkg::Changelog modules so it's best kept separate. Many scripts have to be updated to cope with the renaming.
2009-10-31Update Dpkg::Changelog to use new ::Entry modulesRaphaël Hertzog3-193/+97
Drop the Dpkg::Changelog::Entry embedded in Dpkg::Changelog. Update Dpkg::Changelog and Dpkg::Changelog::Debian to use the new modules. Some (undocumented) features have been removed with this rewrite. The entries are not parsed item by item anymore. The Urgency field will no longer receive the comment that can follow the urgency. The content of “Closes” is exported by Dpkg::Changelog::Entry::Debian as an optional field. The test-suite also had to be updated to cope with the API changes and the fact that bugs are no longer duplicated in the “Closes” field.
2009-10-31Dpkg::Changelog::Entry, Dpkg::Control::Changelog: new modulesRaphaël Hertzog5-0/+505
Dpkg::Changelog::Entry is a somewhat generic representation of a changelog entry. It offers an interface exporting the basic information that we need to extract for dpkg-parsechangelog. Dpkg::Changelog::Entry::Debian is the implementation of this interface for the typical Debian changelog entry. Dpkg::Control::Changelog is the object representing the information exported by dpkg-parsechangelog. It starts empty as a simple Dpkg::Control of type CTRL_CHANGELOG. Those new modules are not yet used by the Dpkg::Changelog modules.
2009-10-31Dpkg::Index: new moduleRaphaël Hertzog3-0/+373
This module represents an ordered set of Dpkg::Control objects. It ensures uniqueness for objects based on a customisable key.
2009-10-18Dpkg::Changelog::find_closes(): don't return duplicate bug numbersRaphaël Hertzog1-3/+3
Ensure we don't return the same bug multiple times even if it's closed multiple times.
2009-10-18Dpkg::Control::Fields: allow transfer of custom fieldsRaphaël Hertzog1-6/+15
Custom fields can be copied when they do not target one of the official file type who are explicitely managed by the letter scheme (X[SBC]-).
2009-10-16Dpkg::Compression: add support for xz compression methodRaphaël Hertzog1-5/+7
Update the dpkg-source manual page accordingly.
2009-10-14Update Swedish translation.Peter Krefting1-300/+329
dselect/po/sv.po: Update to 280t0f0u. man/po/sv.po: Update to 1642t0f0u. po/sv.po: Update to 967t0f0u. scripts/po/sv.po: Update to 471t0f0u.
2009-10-14Do not use C++ style comments in C codeGuillem Jover1-5/+9
2009-10-09Dpkg::Control: rename CTRL_APT_* to CTRL_INDEX_*Raphaël Hertzog6-31/+31
The Packages and Sources files are not really specific to APT. Those files are indexes that can be used by other programs.
2009-10-08Dpkg::Changelog::Debian: preserve blank linesRaphaël Hertzog2-6/+17
The blank lines separating the header, changes and trailer lines were lost in the parsing. Now they are stored in three new attributes of Dpkg::Changelog::Entry.
2009-10-08Dpkg::Changelog::Debian: keep blank lines and trailing whitespace unchangedRaphaël Hertzog2-15/+22
In order to be able to output the very same changelog file, we want to keep whitespaces while parsing and simply drop them in outputs where they should not appear. This commit is a good start towards this goal.
2009-10-08Dpkg::Changelog::Debian: store unmodified changes lines in an arrayRaphaël Hertzog2-10/+17
And post-process them later for output as a proper Dpkg::Control information block.
2009-10-05Dpkg::Deps::version_implies(): fix to return undef with invalid versionsRaphaël Hertzog1-2/+2
The 0 value means that the implication is logically disproved. We wanted to express that we don't know anything since the version parameter is not a valid version and thus can't be compared.
2009-10-05Dpkg::Version: rename some functions and constantsRaphaël Hertzog7-48/+49
version_compare_op() becomes version_compare_relation(). version_normalize_cmp_op() becomes version_normalize_relation(). The CMP_OP_* constants become REL_*. Update all scripts and modules accordingly.
2009-10-05Update German scripts translationHelge Kreutzmann1-108/+122
Update to 471t.
2009-10-04Ensure that the string representation of Dpkg::Version is unchangedRaphaël Hertzog1-1/+4
The version string used at creation time should be returned when you stringify a Dpkg::Version object. Ensure this by adding a non-regression test.
2009-10-04Dpkg::Version: drop the old API and implementationRaphaël Hertzog2-177/+5
Switch the non-regression tests to the new API.
2009-10-04Update all Perl modules and scripts to use the new Dpkg::Version APIRaphaël Hertzog9-69/+72
2009-10-04Dpkg::Version: new implementation and new object interfaceRaphaël Hertzog2-12/+349
The old implementation is still around in this commit so that it's easy to checkout this commit and add supplementary test cases in scripts/t/100_Dpkg_Version.t to verify that both implementations have the same result. Some new test cases have been added during the implementation. The new object interface overrides all the comparison operators so that you can directly compare two Dpkg::Version objects. The object can also be used within strings and it will generate the same version string than the one given at creation time.
2009-10-03Update German scripts translationHelge Kreutzmann1-63/+58
Update to 468t.
2009-10-02dpkg-scanpackages: add new --medium optionRaphaël Hertzog1-1/+5
This feature is supported in the dpkg-scanpackages implementation provided by dpkg-multicd. Unfortunately it was using the "-m" option which got granted to --multiversion in the official dpkg-scanpackages. This option will only be useful for people wishing to create Packages.cd files for use by the multicd dselect access method. Closes: #402527
2009-10-02dpkg-scanpackages/dpkg-scansources: support compressed override filesRaphaël Hertzog2-18/+32
This feature is supported in the dpkg-scanpackages implementation provided by dpkg-multicd.
2009-10-01Dpkg::Control::Fields: add Priority and Section fields to CTRL_APT_SRCRaphaël Hertzog1-2/+3
Both fields are allowed in Sources files, they are generated by dpkg-scansources or apt-ftparchive based on the override files.
2009-09-30dpkg-statoverride: Rewrite in CGuillem Jover2-249/+0
2009-09-27Update Polish translation of scriptsWiktor Wandachowicz1-118/+132
Update to 467t
2009-09-26Update German scripts translationHelge Kreutzmann1-222/+242
Update to 473t.
2009-09-20dpkg-genchanges, Dpkg::Vendor::Default: drop hook before-changes-creationRaphaël Hertzog2-10/+0
This hook is useless now that the Ubuntu vendor object uses post-process-changelog-entry to add their Launchpad-Bugs-Fixed field.
2009-09-20Dpkg::Vendor::*: better handle unknown hooksRaphaël Hertzog3-8/+9
Implement vendor objects in a way that the return value for unknown hooks is better defined: empty list in list context or undef in scalar context.
2009-09-20Dpkg::Vendor::Default: recommend use base for child objectsRaphaël Hertzog1-2/+1
2009-09-20Dpkg::Vendor::Ubuntu: move Launchpad-Bugs-Fixed creation in another hookRaphaël Hertzog1-6/+10
The creation of the Launchpad-Bugs-Fixed field is now done in post-process-changelog-entry instead of before-changes-creation so that it's also output by dpkg-parsechangelog and not only in the .changes file. Closes: #536066
2009-09-20Dpkg::Vendor::Ubuntu: register custom field Launchpad-Bugs-FixedRaphaël Hertzog1-0/+10
2009-09-20Dpkg::Changelog: add new vendor hook post-process-changelog-entryRaphaël Hertzog2-0/+13
This hook is mainly meant to extract more structured information from the raw changes information.
2009-09-20Dpkg::Control::Fields: don't fail when vendor hook is not (well) implementedRaphaël Hertzog1-0/+1
2009-09-19dpkg-scansources: simplify by relying more on the Dpkg::Control objectRaphaël Hertzog1-14/+2
2009-09-19dpkg-scanpackages: simplify by using the Dpkg::Control objectRaphaël Hertzog1-38/+15
2009-09-19Register field Dm-Upload-Allowed as Debian specificRaphaël Hertzog2-7/+10
2009-09-19Add vendor hook to register custom fieldsRaphaël Hertzog3-2/+30
2009-09-19Drop Dpkg::Fields and convert everything to Dpkg::Control::FieldsRaphaël Hertzog6-113/+26
2009-09-19dpkg-genchanges, dpkg-gencontrol: do not hardcode the field output orderRaphaël Hertzog2-13/+1
The right field output order is automatically set based on the type of the Dpkg::Control object used.
2009-09-19Get rid of Dpkg::Deps @src_dep_fields @pkg_dep_fields and %dep_field_typeRaphaël Hertzog7-69/+15
Update all modules and scripts to not use those variables of Dpkg::Deps but instead the two functions field_list_(pkg|src)_dep() of Dpkg::Control::Fields.
2009-09-19Replace old capit() by field_capitalize() everywhereRaphaël Hertzog5-8/+8
capit() is provided by Dpkg::Fields while field_capitalize() is part of the new Dpkg::Control::Fields API.
2009-09-19Dpkg::Control: define the default output order based on the typeRaphaël Hertzog1-0/+2
2009-09-19Dpkg::Control::Fields: official list of control fieldsRaphaël Hertzog3-0/+566
This new module provides an official list of control fields as well as many functions to query that list and the meta-information associated to each list.
2009-09-19Drop unused code that has been merged in Dpkg::ControlRaphaël Hertzog2-304/+1
2009-09-19Use the new Dpkg::Control interface everywhereRaphaël Hertzog12-69/+70
Update all scripts and module to use Dpkg::Control instead of parsecdata and Dpkg::Fields::Object.
2009-09-19Dpkg::Control: new object interfaceRaphaël Hertzog5-10/+672
The new object interface combines the old Dpkg::Fields::Object and the old parsecdata funtion. The new object can be used like a regular hash and yet it behaves intelligently taking into account all the specifics of control information. Fields are case-insensitive, the order in which they have been read is kept for output stability. The object uses operator overloading and an internal tied hash so that it just does what you mean.