Fix the check for bug #198398 so that it works even when running
authorZac Medico <zmedico@gentoo.org>
Wed, 12 Dec 2007 09:25:49 +0000 (09:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 12 Dec 2007 09:25:49 +0000 (09:25 -0000)
repoman from the root of the repo.

svn path=/main/trunk/; revision=8888

bin/repoman

index 783b4fb794ca5a04c70f0571d1a0100752c80882..c921234fddac7af1c06b798e86783169e1d61344 100755 (executable)
@@ -813,7 +813,8 @@ if isCvs:
                "RMD160" not in portage.checksum.hashorigin_map:
                from portage.util import grablines
                repo_lines = grablines("./CVS/Repository")
-               if repo_lines and repo_lines[0].startswith("gentoo-x86/"):
+               if repo_lines and \
+                       "gentoo-x86" == repo_lines[0].strip().split(os.path.sep)[0]:
                        msg = "Please install " \
                        "pycrypto or enable python's ssl USE flag in order " \
                        "to enable RMD160 hash support. See bug #198398 for " \