ferringb says: i pity the fool who doesnt use better style
authorMike Frysinger <vapier@gentoo.org>
Thu, 15 Dec 2005 06:03:00 +0000 (06:03 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 15 Dec 2005 06:03:00 +0000 (06:03 -0000)
svn path=/main/trunk/; revision=2373

pym/portage.py

index 52a048053d3d12a07fece91ba80e81dacca399d7..cdd9ba7646db2a6fd5402de48226af03e1aebbdd 100644 (file)
@@ -669,7 +669,7 @@ def env_update(makelinks=1):
                                commands.getstatusoutput("cd / ; /sbin/ldconfig -r "+root)
                        else:
                                commands.getstatusoutput("cd / ; /sbin/ldconfig -X -r "+root)
-       elif ostype == "FreeBSD" or ostype == "DragonFly":
+       elif ostype in ("FreeBSD","DragonFly"):
                if (ld_cache_update):
                        writemsg(">>> Regenerating "+str(root)+"var/run/ld-elf.so.hints...\n")
                        commands.getstatusoutput("cd / ; /sbin/ldconfig -elf -i -f "+str(root)+"var/run/ld-elf.so.hints "+str(root)+"etc/ld.so.conf")