Important bugfixes from Ian Campbell.
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 26 Nov 2003 21:53:37 +0000 (21:53 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 26 Nov 2003 21:53:37 +0000 (21:53 -0000)
commitfea4b446df1b4d7c81804252ec7978092143f36e
tree1d6adcd3573f22185d4e256cb3acdeb14e5c1e65
parent4ddddd180eaa7a1f4b2071c37425d99c3ef8040d
Important bugfixes from Ian Campbell.
init_archive_deb_data()
        We want to filter for data.tar.* in the AR file not the TAR
        file, else we get nothing.

all_control_list()
        Make the 'extensions' array of control file names a global so it
        can be used in unpack_package as well. Name the global
        all_control_files. Don't hard code the length of
        all_control_files but instead used sizeof.

unpack_package()
        Only unpack the control files we are interested in (from
        all_control_files). Extract the data.tar.gz into / rather than
        the current directory.

dpkg_main()
        Configure packages in a second pass so all the packages being
        installed are unpacked before configuring.

Some purely cosmetic changes:

header
        update list of differences since two of them are no longer true.
        The .control file is no longer stored as a result of this patch
        -- it was redundant since the info is in status. New packages
        appear to be added to the end of the status file now rather than
        the start.

remove_package()
        Make message printing optional, so we can avoid a redundant
        message when replacing/upgrading a package. When we do print
        stuff then include the version number.

purge_package()
        Print "Purging xxx (yyy) ..." message like the other actions.

configure_package()
        Add "..." to "Setting up" message to be consistent with other
        actions.
archival/dpkg.c