[Yum-devel] [PATCH] add support for saving out depsolved transactions and reloading them.
seth vidal
skvidal at fedoraproject.org
Wed Nov 3 21:00:53 UTC 2010
On Wed, 2010-11-03 at 21:41 +0200, Ville Skyttä wrote:
> On Wednesday 03 November 2010, Seth Vidal wrote:
>
> > users with systems in relative, or precise, lockstep, to pass around a .ts
>
> .ts here
>
> > + def save_ts(self, filename=None, auto=False):
> > + """saves out a transaction to .yumts file to be loaded later"""
>
> .yumts here
>
> > + if not filename:
> > + prefix = 'yum_save_ts-%s' % time.strftime('%Y-%m-%d-%H-%M')
> > + fd,filename = tempfile.mkstemp(suffix='.ts', prefix=prefix)
>
> .ts here
>
> > + def load_ts(self, filename, ignorerpm=None, ignoremissing=None):
> > + """loads a transaction from a .yumts file"""
>
> .yumts here
>
> I would use .yumts (or maybe even better .yumtx) as the suffix everywhere, as
> .ts tends already be associated with Qt Linguist message catalog files and
> MPEG-2 transport streams.
fair enough - .yumtx it is.
thanks
-sv
More information about the Yum-devel
mailing list