[Yum-devel] [PATCH] add support for saving out depsolved transactions and reloading them.
Ville Skyttä
ville.skytta at iki.fi
Wed Nov 3 19:41:46 UTC 2010
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.
More information about the Yum-devel
mailing list