Personal tools
You are here: Home Zpydoc API Documentation Products.RPMDistro.utils
Log in


Forgot your password?
 

 Products.RPMDistro.utils  

Up one level
Products RPMDistro utils
Functions
create_splash (context, fname)
do splash file creation - this is a strange lss16 format!!!
lstrip (astring, prefix=' ')
Workaround for the fact that ''.lstrip() takes no arguments in python 2.1. This can be deleted and replaced with ''.lstrip() once we require zope 2.7.
nevraPrintableFromTuple (tuple)
returns printable nevra string from a (n,e,v,r,a)
nevraTupleFromRPMName (str)
nevraTupleFromYumDep (dep)
epoch:name-ver-rel.arch
normalize_time (datetime)
Convert datetime to string representing time in local zone. The datetime arg can be either a string parsable by DateTime.DateTime(), or it can already be a DateTime instance. Output is sort of like that used by ls -l (i.e. only show year if it's not this year), e.g.: 'Aug 5 2003' or 'Sep 21 23:22'. If the input is a string that cannot be parsed, return ''.
opcode2str (code)
map rpm opcode to string - these should agree with createrepo ;)
prettySize (size)
make a nice string-formatted entry for size
returnNevraPrintable (rpmhdr)
return printable string for the pkgname/object name - epoch:ver-rel.arch
Document Actions
« August 2010 »
August
MoTuWeThFrSaSu
1
2345678
9101112131415
16171819202122
23242526272829
3031
Buy Now
Bastion CD
Subscribe Now
and get BastionLinux™ for as little as GBP 29.99 per month...