diff options
author | Giovanni Mascellani <mascellani@poisson.phc.unipi.it> | 2011-07-31 11:36:45 +0200 |
---|---|---|
committer | Sean Finney <seanius@htpc-l.(none)> | 2011-09-17 13:28:46 +0200 |
commit | 2728f17f36f466682d3cc27ab8021fec3f827aa9 (patch) | |
tree | b97224b888f19fc8a0468e300888a9812ecfbce3 /patchtracker/DebTarHandler.py | |
parent | b231a89e5bad73baa00edffc198bee93293eb295 (diff) | |
download | patch-tracker-2728f17f36f466682d3cc27ab8021fec3f827aa9.tar.gz |
Added ghost patches support.
The ghost options disable the actual loading in memory of the patches.
When you just want to know the number of patches or their stats,
this saves quite a lot of memory and CPU time.
Diffstat (limited to 'patchtracker/DebTarHandler.py')
-rw-r--r-- | patchtracker/DebTarHandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patchtracker/DebTarHandler.py b/patchtracker/DebTarHandler.py index 311e39b..3564af2 100644 --- a/patchtracker/DebTarHandler.py +++ b/patchtracker/DebTarHandler.py @@ -10,8 +10,8 @@ class DebTarHandler: self.tarfile = fname self.size = os.stat(fname)[stat.ST_SIZE] - def series(self): - return Patch.Quilt30PatchSeries(self.tarfile) + def series(self, ghost=False): + return Patch.Quilt30PatchSeries(self.tarfile, ghost=ghost) if __name__ == "__main__": print "DebTarHandler testing" |