Home | Trees | Index | Help |
---|
Module DistfilesCleaner :: Class DistfilesCleaner |
|
DistfilesCleanerNonInstalled
,
DistfilesCleanerSmallFiles
Abstract class
All the differents polices for cleaning the distfiles directories, should inherit from this class, and override the abstract methods (the one that have the pass keywords)Method Summary | |
---|---|
Deletes the files that the policy dictates. | |
policy for the clean: this method leaves in the hash the entries that you want to delete. | |
sets the distdir directory to a custom value | |
sets the pretend (do nothing) flag | |
borrowed from /usr/bin/emerge 1.264 (2004/02/08) shows a countdown message. | |
deletes a filename. | |
Returns a dictionary (i, value), with the filename to and its size. |
Class Variable Summary | |
---|---|
str |
distfile_path = '/usr/portage/distfiles'
|
int |
pretend = 0 |
Method Details |
---|
perform(self)Deletes the files that the policy dictates. if the self.pretend variable is True, it has to print the files. |
select_files_to_delete(self, hash)policy for the clean: this method leaves in the hash the entries that you want to delete. When the method is called the hash contains all the source files avalailable Abstract |
set_distdir(self, szDir)sets the distdir directory to a custom value |
set_pretend(self, bValue)sets the pretend (do nothing) flag |
__countdown(self, secs=5, doing='Starting')borrowed from /usr/bin/emerge 1.264 (2004/02/08) shows a countdown message. called from perform |
__delete_filename(self, filename)deletes a filename. called by #perform() |
__get_distfiles(self)Returns a dictionary (i, value), with the filename to and its size. called from #perform(). protected |
Class Variable Details |
---|
distfile_path
|
pretend
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Apr 10 16:01:51 2004 | http://epydoc.sf.net |