[Piuparts-commits] rev 85 - / people/jsw/multi-arch-master/piupartslib
John Wright
jsw-guest at alioth.debian.org
Wed Sep 5 00:27:00 UTC 2007
Author: jsw-guest
Date: 2007-09-05 00:27:00 +0000 (Wed, 05 Sep 2007)
New Revision: 85
Modified:
/
people/jsw/multi-arch-master/piupartslib/packagesdb.py
Log:
r76 at neptune: jswright | 2007-08-29 21:40:23 -0600
Replace tabs with spaces
Property changes on:
___________________________________________________________________
Name: svk:merge
- b12c1668-1bd8-44a9-a1e9-87753b0bf707:/local/piuparts:75
+ b12c1668-1bd8-44a9-a1e9-87753b0bf707:/local/piuparts:76
Modified: people/jsw/multi-arch-master/piupartslib/packagesdb.py
===================================================================
--- people/jsw/multi-arch-master/piupartslib/packagesdb.py 2007-09-05 00:26:51 UTC (rev 84)
+++ people/jsw/multi-arch-master/piupartslib/packagesdb.py 2007-09-05 00:27:00 UTC (rev 85)
@@ -111,14 +111,14 @@
return dircache.listdir(dirname)
def exists(self, pathname):
- try:
- cache = self.exists_cache
- except AttributeError:
- self.exists_cache = {}
- cache = self.exists_cache
- if pathname not in cache:
- cache[pathname] = os.path.exists(pathname)
- return cache[pathname]
+ try:
+ cache = self.exists_cache
+ except AttributeError:
+ self.exists_cache = {}
+ cache = self.exists_cache
+ if pathname not in cache:
+ cache[pathname] = os.path.exists(pathname)
+ return cache[pathname]
def open_file(self, pathname, mode):
return file(pathname, mode)
@@ -137,17 +137,17 @@
return False
def any_log_exists(self, package, subdirs):
- try:
- cache = self.basename_cache
- except AttributeError:
- self.basename_cache = {}
- cache = self.basename_cache
+ try:
+ cache = self.basename_cache
+ except AttributeError:
+ self.basename_cache = {}
+ cache = self.basename_cache
package_name = package["Package"]
for subdir in subdirs:
for basename in self.listdir(subdir):
- if basename not in cache:
- cache[basename] = basename.split("_", 1)
- parts = cache[basename]
+ if basename not in cache:
+ cache[basename] = basename.split("_", 1)
+ parts = cache[basename]
if len(parts) == 2 and parts[0] == package_name:
return True
return False
More information about the Piuparts-commits
mailing list