qitoolchain.database – Binary packages storage¶
-
class
qitoolchain.database.
DataBase
(name, db_path)¶ Binary packages storage
-
load
()¶ Load the packages from the xml file
-
save
()¶ Save the packages in the xml file
-
remove
()¶ Remove self
-
add_package
(package)¶ Add a package to the database
-
remove_package
(name)¶ Remove a package from a database
-
get_package_path
(name)¶ Get the path to a package given its name
-
get_package
(name, raises=True)¶ Get a package given its name
-
solve_deps
(packages, dep_types=None)¶ Parse every package.xml, and solve dependencies
-
update
(feed, branch=None, name=None)¶ Update a toolchain given a feed
feed
can be:- a path
- a url
- a git url (in this case branch and name cannot be None,
and
feeds/<name>.xml
must exist on the given branch)
-