fix whitespace breakage introduced by writemsg_stdout() changes
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 Feb 2006 01:10:29 +0000 (01:10 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 8 Feb 2006 01:10:29 +0000 (01:10 -0000)
svn path=/main/trunk/; revision=2677

pym/portage.py

index abc48ddf2aac925602414df08bc5f19cf7370932..0849841ae0ec9ef01e2b618993a3f0d182735844 100644 (file)
@@ -5765,45 +5765,45 @@ class dblink:
 
                                if pkgfiles[obj][0]=="dir":
                                        if not os.path.isdir(obj):
-                                               writemsg_stdout("--- !dir  %s %s\n" % ("dir", obj))
+                                               writemsg_stdout("--- !dir   %s %s\n" % ("dir", obj))
                                                continue
                                        mydirs.append(obj)
                                elif pkgfiles[obj][0]=="sym":
                                        if not os.path.islink(obj):
-                                               writemsg_stdout("--- !sym  %s %s\n" % ("sym", obj))
+                                               writemsg_stdout("--- !sym   %s %s\n" % ("sym", obj))
                                                continue
                                        try:
                                                os.unlink(obj)
-                                               writemsg_stdout("<<<       %s %s\n" % ("sym",obj))
+                                               writemsg_stdout("<<<        %s %s\n" % ("sym",obj))
                                        except (OSError,IOError),e:
-                                               writemsg_stdout("!!!       %s %s\n" % ("sym",obj))
+                                               writemsg_stdout("!!!        %s %s\n" % ("sym",obj))
                                elif pkgfiles[obj][0]=="obj":
                                        if not os.path.isfile(obj):
-                                               writemsg_stdout("--- !obj  %s %s\n" % ("obj", obj))
+                                               writemsg_stdout("--- !obj   %s %s\n" % ("obj", obj))
                                                continue
                                        mymd5=portage_checksum.perform_md5(obj, calc_prelink=1)
 
                                        # string.lower is needed because db entries used to be in upper-case.  The
                                        # string.lower allows for backwards compatibility.
                                        if mymd5 != string.lower(pkgfiles[obj][2]):
-                                               writemsg_stdout("--- !md5  %s %s\n" % ("obj", obj))
+                                               writemsg_stdout("--- !md5   %s %s\n" % ("obj", obj))
                                                continue
                                        try:
                                                os.unlink(obj)
                                        except (OSError,IOError),e:
                                                pass
-                                       writemsg_stdout("<<<       %s %s\n" % ("obj",obj))
+                                       writemsg_stdout("<<<        %s %s\n" % ("obj",obj))
                                elif pkgfiles[obj][0]=="fif":
                                        if not stat.S_ISFIFO(lstatobj[stat.ST_MODE]):
-                                               writemsg_stdout("--- !fif  %s %s\n" % ("fif", obj))
+                                               writemsg_stdout("--- !fif   %s %s\n" % ("fif", obj))
                                                continue
                                        try:
                                                os.unlink(obj)
                                        except (OSError,IOError),e:
                                                pass
-                                       writemsg_stdout("<<<       %s %s\n" % ("fif",obj))
+                                       writemsg_stdout("<<<        %s %s\n" % ("fif",obj))
                                elif pkgfiles[obj][0]=="dev":
-                                       writemsg_stdout("---       %s %s\n" % ("dev",obj))
+                                       writemsg_stdout("---        %s %s\n" % ("dev",obj))
 
                        mydirs.sort()
                        mydirs.reverse()
@@ -5813,7 +5813,7 @@ class dblink:
                                if not last_non_empty.startswith(obj) and not listdir(obj):
                                        try:
                                                os.rmdir(obj)
-                                               writemsg_stdout("<<<       %s %s\n" % ("dir",obj))
+                                               writemsg_stdout("<<<        %s %s\n" % ("dir",obj))
                                                last_non_empty = ""
                                                continue
                                        except (OSError,IOError),e: