Merge lp://staging/~paul-eggleton/smart/yocto-smart-fixes into lp://staging/smart

Proposed by Paul-eggleton
Status: Needs review
Proposed branch: lp://staging/~paul-eggleton/smart/yocto-smart-fixes
Merge into: lp://staging/smart
Diff against target: 1794 lines (+730/-71)
26 files modified
smart/backends/rpm/base.py (+36/-7)
smart/backends/rpm/header.py (+12/-5)
smart/backends/rpm/metadata.py (+21/-8)
smart/backends/rpm/pm.py (+17/-0)
smart/cache.py (+72/-3)
smart/ccache.c (+355/-24)
smart/channels/rpm_sys.py (+4/-4)
smart/commands/channel.py (+15/-2)
smart/commands/check.py (+3/-0)
smart/commands/config.py (+10/-1)
smart/commands/download.py (+8/-0)
smart/commands/flag.py (+4/-1)
smart/commands/info.py (+4/-0)
smart/commands/install.py (+4/-0)
smart/commands/mirror.py (+4/-1)
smart/commands/priority.py (+4/-1)
smart/commands/query.py (+51/-0)
smart/commands/reinstall.py (+5/-1)
smart/commands/remove.py (+4/-0)
smart/commands/search.py (+2/-0)
smart/commands/upgrade.py (+3/-0)
smart/control.py (+2/-2)
smart/plugins/detectsys.py (+2/-1)
smart/searcher.py (+11/-3)
smart/transaction.py (+21/-7)
smart/util/optparse.py (+56/-0)
To merge this branch: bzr merge lp://staging/~paul-eggleton/smart/yocto-smart-fixes
Reviewer Review Type Date Requested Status
Smart Package Manager Team Pending
Review via email: mp+147946@code.staging.launchpad.net

Description of the change

Included are most of the patches for Smart developed within the Yocto Project and being carried in OE-core which are now being carried in OpenEmbedded-Core. Each patch has a commit message explaining what it does; if further clarification or adjustments are needed please let me know.

To post a comment you must log in.

Unmerged revisions

1096. By Paul-eggleton

Print a more friendly error if YAML output is requested without PyYAML

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

1095. By Bogdan Marinescu <email address hidden>

To fix some multilib issues, change the way the RPM backend decides
if two packages can coexist: if they have a different architecture,
automatically assume that they can coexist (which is fundamental for
multilib).

Signed-off-by: Bogdan Marinescu <email address hidden>

1094. By Bogdan Marinescu <email address hidden>

Improve error reporting in smart

Add code to check proper command line arguments for various
smart commands. Exit with error if erroneous/additional arguments
are given in the command line.

Signed-off-by: Bogdan Marinescu <email address hidden>

1093. By Mark Hatle <email address hidden>

backends/rpm: Fix incorrect call to the match function

The match function should take three parameters, name, comparison, version...
The original code was passing it a reference to the object holding the data
instead, which caused the comparison in match to always fail.

Signed-off-by: Mark Hatle <email address hidden>

1092. By Paul-eggleton

backends/rpm: remove creation of /var/tmp

This doesn't appear to be needed, and breaks installation of base-files
in OpenEmbedded (since that is a symlink installed as part of the
package).

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

1091. By Paul-eggleton

backends/rpm: fix parsing of rpm-md metadata

If assertions are disabled then the queue.pop() wasn't being executed,
leading to requires, recommends etc. not being read properly.

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

1090. By Paul-eggleton

backends/rpm: add support for setting dependency flags

This is useful for OpenEmbedded so that we can do the equivalent of
the --nolinktos and --noparentdirs rpm command line options.

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

1089. By Paul-eggleton

backends/rpm: implement rpm-extra-macros option

Allow defining extra macros in the smart configuration to be passed
to rpm before opening the database.

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

1088. By Paul-eggleton

Handle recommended packages in core and rpm backends

Identify and store recommended packages in the cache, add a query option
to read them and ignore them if they are not present when installing.

Initial identification code from Mark Hatle <email address hidden>.

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

1087. By Paul-eggleton

Fix smart RPM backend to handle rpm-dbpath/rpm-root properly

Don't assume that if the dbpath starts with / that it is an absolute
path. This matches the behaviour of rpm itself. (If the root path is
specified and does not start with /, rpm will prepend the root path
twice and fail).

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches