diff options
author | Tomas Touceda <chiiph@gentoo.org> | 2011-06-23 20:10:16 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@gentoo.org> | 2011-06-23 20:10:16 -0300 |
commit | 245d58049c1657ec5116b0e3598c83a82d11a69a (patch) | |
tree | c6a89a07deabd7902e267eba66af1b957d643ceb /lib/thandy/ClientCLI.py | |
parent | 2bb0d22585d1b75c48c28ffb11743e8de44cf08a (diff) |
Adds the code to introduce Thp Transactions
Recognizes bundles that have all thp packages and arranges them in a separated
dict from the installableDict. This bundles will be handled by the ThpInstaller
as a whole, so it can order installations by dependencies.
Diffstat (limited to 'lib/thandy/ClientCLI.py')
-rw-r--r-- | lib/thandy/ClientCLI.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/thandy/ClientCLI.py b/lib/thandy/ClientCLI.py index bcbdfc7..97951b4 100644 --- a/lib/thandy/ClientCLI.py +++ b/lib/thandy/ClientCLI.py @@ -120,6 +120,7 @@ def update(args): lengths = {} installable = {} btMetadata = {} + thpTransactions = {} logging.info("Checking for files to update.") files, downloadingFiles = repo.getFilesToUpdate( trackingBundles=args, @@ -127,13 +128,14 @@ def update(args): lengthDict=lengths, usePackageSystem=use_packagesys, installableDict=installable, - btMetadataDict=btMetadata) + btMetadataDict=btMetadata + thpTransactionDict=thpTransactions) if forceCheck: files.add("/meta/timestamp.txt") forceCheck = False - if installable and not files: + if (thpTransactions or installable) and not files: for p, d in installable.items(): for n, i in d.items(): if i.canInstall(): @@ -151,6 +153,12 @@ def update(args): i = h.getInstaller() if i != None: i.install() + + print "Bundles with all THP packages:" + for bundle in thpTransactions: + # TODO: ThpTransaction goes here! + print bundle + return elif not files: |