opkg:opkg-0.2.x

Last commit made on 2014-11-13
Get this branch:
git clone -b opkg-0.2.x https://git.launchpad.net/opkg

Branch merges

Branch information

Name:
opkg-0.2.x
Repository:
lp:opkg

Recent commits

f69ea08... by Paul Barker <email address hidden>

configure.ac: Bump version to 0.2.4

Signed-off-by: Paul Barker <email address hidden>

f7a296c... by Paul Barker <email address hidden>

NEWS: Update for v0.2.4 release

Signed-off-by: Paul Barker <email address hidden>

999bb8b... by Paul Barker <email address hidden>

pkg_hash: Fix selection with multiple equal providers

In pkg_hash_fetch_best_installation_candidate, we should not error out if
multiple providers of a given abstract package are present but there is nothing
to differentiate between them (neither is held, preferred, matches the abstract
package name or is already installed). Instead we should just select any valid
provider and get on with the install.

This fixes issue 152.

Signed-off-by: Paul Barker <email address hidden>

8120a10... by Paul Barker <email address hidden>

opkg_install: Set pkg state and give advice when install fails

The status line for a package for which installation had failed was the cryptic
"install prefer,user not-installed". This is very unclear and doesn't represent
the broken state of the package clearly. Instead we set flags so that we get
"install reinst-required half-installed". This is better but still not perfect
as 'install' could be misinterpreted. Further cleanup of the state formatting
will improve this.

We also give some advice on how to remove package debris or reattempt the
install.

Signed-off-by: Paul Barker <email address hidden>

5394ed4... by =?utf-8?q?Ga=C3=ABl_PORTAY?= <email address hidden>

opkg_upgrade: Do not upgrade orphan packages

In the case of upgrading many packages (most likely common case is upgrade
all installed packages), packages may become orphan. Those orphans should
not be upgraded and must be removed.

Use case:
 * A1 depends on B1
 * A2 does not depend anymore on B
 * A1 and B1 are outdated
 * A2 and B2 are available.

$ opkg-cl upgrade A
Is fine:
A1 is upgraded to A2
B1 is removed

$ opkg-cl upgrade
Will upgrade A2 and install B2 (remove orphan B1 and install B2).

This patch will halt upgrade of B2 when opkg tries to upgrade a package
marked as "replace".

Signed-off-by: Gaël PORTAY <email address hidden>
Signed-off-by: Paul Barker <email address hidden>

acd227f... by =?utf-8?q?Ga=C3=ABl_PORTAY?= <email address hidden>

opkg_upgrade: Upgrade must not modify package flags

Upgrade has to copy the flags of the old package.

Signed-off-by: Gaël PORTAY <email address hidden>
Signed-off-by: Paul Barker <email address hidden>

8f1ed18... by Paul Barker <email address hidden>

release: Verify correct file when not using gzip

If we're downloading a non-gzipped "Packages" file it is written straight to
list_file_name and nothing is written to tmp_file_name. So it is list_file_name
that should be verified not tmp_file_name.

Signed-off-by: Paul Barker <email address hidden>

1700c1f... by Andreas Monzner <email address hidden>

unarchive: Fix broken uname and gname cache

Signed-off-by: Andreas Monzner <email address hidden>
Signed-off-by: Andreas Oberritter <email address hidden>
Signed-off-by: Paul Barker <email address hidden>

649e843... by Andreas Oberritter <email address hidden>

pkg_hash_fetch_conflicts: fix possible segfaults

Signed-off-by: Andreas Oberritter <email address hidden>
Signed-off-by: Paul Barker <email address hidden>

e9d110d... by Andreas Oberritter <email address hidden>

pkg_depends: Don't mark Conflicts as Depends

parseDepends sets conflicts->type to DEPEND so we move the setting to CONFLICTS
after the call to parseDepends so that it is not overwritten.

- Fixes 'whatconflicts' sub-command.

Signed-off-by: Andreas Oberritter <email address hidden>
Signed-off-by: Paul Barker <email address hidden>