Skip to content.
|
Skip to navigation
Site Map
Accessibility
Contact
Search Site
only in current section
Advanced Search…
Sections
Home
Builders
BastionLinux 6
BastionLinux 10
HelpDesk
Products
Services
Partners
Personal tools
Log in
You are here:
Home
→
Zpydoc API Documentation
→
Products.RPMDistro.utils
Log in
Login Name
Password
Cookies are not enabled. You must enable cookies before you can log in.
Forgot your password?
Info
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
Mo
Tu
We
Th
Fr
Sa
Su
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
API Documentation
View API Docs
Products.RPMDistro
Buy Now
Subscribe Now
and get
BastionLinux™
for as little as
GBP 29.99
per month...