backend/satellite_tools/diskImportLib.py | 26 -------------------------- 1 file changed, 26 deletions(-)
New commits: commit e38d6a534365279689da584347b8736afa7b4ed4 Author: Jan Pazdziora jpazdziora@redhat.com Date: Fri Feb 4 13:31:51 2011 +0100
With previous removals, getChannelAttribute is not used anymore, removing.
diff --git a/backend/satellite_tools/diskImportLib.py b/backend/satellite_tools/diskImportLib.py index 55f683d..7dae65a 100644 --- a/backend/satellite_tools/diskImportLib.py +++ b/backend/satellite_tools/diskImportLib.py @@ -43,32 +43,6 @@ class Backend: def get_backend(): return Backend().get_backend()
-# Retrieves an attribute for a channel dumped in XML -def getChannelAttribute(mountPoint, channel, attribute, handler): - dumper = xmlDiskSource.ChannelDiskSource(mountPoint=mountPoint) - dumper.setChannel(channel) - f = dumper.load() - - # save the previous container - oldContainer = handler.get_container(xmlSource.ChannelContainer.container_name) - # And replace it with the default one - only saves stuff in the batch - newContainer = xmlSource.ChannelContainer() - handler.set_container(newContainer) - - # Process the information - handler.process(f) - - channel = newContainer.batch[0] - - # Cleanup - handler.reset() - - # Restore the old container - handler.set_container(oldContainer) - - return channel.get(attribute) - - # Functions for dumping packages def rpmsPath(obj_id, mountPoint, sources=0): # returns the package path (for exporter/importer only)