From ed153d7cd57b0ace0ec085330c0ba66239a5dba5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 12 Dec 2007 09:25:49 +0000 Subject: [PATCH] Fix the check for bug #198398 so that it works even when running repoman from the root of the repo. svn path=/main/trunk/; revision=8888 --- bin/repoman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index 783b4fb79..c921234fd 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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 " \ -- 2.26.2