Package backend :: Package common :: Module rhnRepository :: Class Repository
[hide private]
[frames] | no frames]

Class Repository

source code


Shared repository class, inherited by both the proxy and server specific Repository classes.

Instance Methods [hide private]
 
__init__(self, channelName=None) source code
 
set_compress_headers(self, val) source code
 
__del__(self) source code
 
getPackagePath(self, pkgFilename, redirect=0)
Returns the path to a package.
source code
 
getSourcePackagePath(self, _pkgFilename)
Returns the path to a package.
source code
 
getPackage(self, pkgFilename, *args)
Get rpm package.
source code
 
getPackageSource(self, pkgFilename)
Get srpm packrge.
source code
 
getPackageHeader(self, pkgFilename)
Get rpm header.
source code
 
_getFile(self, filePath)
Returns xmlrpclib file object to any file given a path to it.
source code
 
_getHeaderFromFile(self, filePath, stat_info=None)
Utility function to extract a header from an rpm.
source code

Inherited from spacewalk.common.RPC_Base.RPC_Base: get_function

Static Methods [hide private]
 
getPackagePathNVRA(_nvra)
OVERLOAD this in server and proxy rhnRepository.
source code
 
i18n(_translation, *_args)
Translations files for Ubuntu.
source code
 
media_1(filePath)
SUSE File
source code
 
_set_last_modified(last_modified, extra_headers=None) source code
 
_fileFeatures(filePath)
From a filepath, construct a dictionary of file features.
source code
Method Details [hide private]

__init__(self, channelName=None)
(Constructor)

source code 
Overrides: spacewalk.common.RPC_Base.RPC_Base.__init__

getPackagePath(self, pkgFilename, redirect=0)

source code 

Returns the path to a package. OVERLOAD this in server and proxy rhnRepository. I.e.: they construct the path differently.

getPackagePathNVRA(_nvra)
Static Method

source code 

OVERLOAD this in server and proxy rhnRepository. I.e.: they construct the path differently.

getSourcePackagePath(self, _pkgFilename)

source code 

Returns the path to a package. OVERLOAD this in server and proxy rhnRepository. I.e.: they construct the path differently.

i18n(_translation, *_args)
Static Method

source code 

Translations files for Ubuntu. E.g. Translation-en_US.bz2

We do not support it so just return 404. But do not fail with traceback.

media_1(filePath)
Static Method

source code 

SUSE File

We do not support it so just return 404. But do not fail with traceback.

getPackageHeader(self, pkgFilename)

source code 

Get rpm header. XXX: stock 8.0 clients could not compress headers, we need to either change the function name, or version the protocol

_getFile(self, filePath)

source code 

Returns xmlrpclib file object to any file given a path to it. IN: filePath: path to any file. OUT: XMLed rpm or source rpm, or an xmlrpc file object.

_getHeaderFromFile(self, filePath, stat_info=None)

source code 

Utility function to extract a header from an rpm. If stat_info was already passed, don't re-stat the file