[patch] add 'justdb' tsflag support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yum now supports some rpm transaction flags, either by "tsflags" config option, or by yum-tsflags plugin.

Currently only partial list of possible TS flags is supported: "noscripts", "notriggers", "nodocs", "test" and "repackage".

I would like to propose to add "justdb" flag as well. The patch attached.

The "justdb" flag is useful in combination with "--installroot=DIR" and "keepcache=1".

After the "yum --installroot=DIR --justdb update" we have some complete rpm database (under DIR/var/lib/rpm). Then we catch the downloaded packages (from DIR/var/cache/yum) and move them either to a local repository (in a case where the rpm database reflects some local partial repository snapshot), or move to removable media and then update a computer without network access, etc.


Regards,
Dmitry Butskoy
http://www.fedoraproject.org/wiki/DmitryButskoy
diff -Nrbup yum-3.2.7/yum/depsolve.py yum-3.2.7-OK/yum/depsolve.py
--- yum-3.2.7/yum/depsolve.py	2007-10-12 18:21:23.000000000 +0400
+++ yum-3.2.7-OK/yum/depsolve.py	2007-11-02 17:03:50.000000000 +0300
@@ -103,6 +103,7 @@ class Depsolve(object):
                             'notriggers': rpm.RPMTRANS_FLAG_NOTRIGGERS,
                             'nodocs': rpm.RPMTRANS_FLAG_NODOCS,
                             'test': rpm.RPMTRANS_FLAG_TEST,
+                            'justdb': rpm.RPMTRANS_FLAG_JUSTDB,
                             'repackage': rpm.RPMTRANS_FLAG_REPACKAGE}
         
         self._ts.setFlags(0) # reset everything.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux