From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 55E6C138247 for ; Sun, 19 Jan 2014 09:26:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81A4BE0C0E; Sun, 19 Jan 2014 09:26:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED474E0B53 for ; Sun, 19 Jan 2014 09:26:30 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CEB3433F8C0; Sun, 19 Jan 2014 09:26:29 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] [PATCH 3/3] Have repoman deprecate G2CONF for the GNOME team. (bug #482084). Date: Sun, 19 Jan 2014 04:26:29 -0500 User-Agent: KMail/1.13.7 (Linux/3.12.1; KDE/4.6.5; x86_64; ; ) Cc: Tom Wijsman References: <1389830840-25848-1-git-send-email-tomwij@gentoo.org> <1389830840-25848-4-git-send-email-tomwij@gentoo.org> In-Reply-To: <1389830840-25848-4-git-send-email-tomwij@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart14348929.qvJAtdUrs7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201401190426.29715.vapier@gentoo.org> X-Archives-Salt: 31787170-ece6-46b3-a96b-f781e3ea9ed1 X-Archives-Hash: bd690bf439cb00a97901aacaca0b9915 --nextPart14348929.qvJAtdUrs7 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wednesday 15 January 2014 19:07:20 Tom Wijsman wrote: > +class DeprecateG2CONF(LineCheck): > + repoman_check_name =3D 'G2CONF.deprecated' > + re =3D re.compile(r'.*G2CONF.*') > + > + def check(self, num, line): > + """Run the check on line and return error if there is one""" > + m =3D self.re.match(line) use re.search instead of re.match so you can drop the redundant ".*". =20 further, i think you want to use word boundaries. so: re =3D re.compile(r'\bG2CONF\b') =2Dmike --nextPart14348929.qvJAtdUrs7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJS25pFAAoJEEFjO5/oN/WB0ykP/35m0Lhaf2sFmdTwuOBKcvO5 pmQxwHbxLuOQdGI9HvVBQZ/iZYWyZsjr3m7Hu7Ilk8t3Kkrp0jGVrga8xRoKNLOS 7bhY6mi6ADvDjNTYgU8K+pQuTt9mD4QF4hHS/IN7wNRHuNlDEvrFq/62Lx0UlD5A gU7TeBTyhyI/lYniCm8dFzk6CreguJg1IUj40aV4XNXdl3Mdz7iBgY7hD1KGFHi1 eiZ/iW7wGNys9D0KgM4rViGZh9kUU0eo3WQTjEeI8p9/IauWt9QASz0bOIDoeD/J g9EZ1nsfFs0SrD3RKwRBYX8OQhpaEnF+fAfqnE0CMLJGD/KeNuOy67A0lcvtz3fd QkEpQETXKqhgCwRHqKubo8Fmg7jhdEB1i1W91Ct+Ap3J+SgUR2x+QldAyZrfAWDi 5eKATWyX6S8sVlqobz3FFOtEW9BbYfNvuOFMpE70Pc7K2zx0j/9dEVEwwUMLuGcu sjghrVqn4tM5AekrZ2aXZiDL7V1gyugYHL+9d/Gc5VBbSshCgassNZQmEDPl3iVQ Q9E22RRm1M0oH928mlRcld/HUzBgiN6xUyw/iq707BdcTfsair7+WFBh92gZ+/Eq qGS9WqCJe0ITBR7PbyN3fUEvi3zugZOmPtO1udDLPUnHXtlTWo0Y9RSQL9Co6dBH 3/onpgxtCWIh2LKSViyh =XO6o -----END PGP SIGNATURE----- --nextPart14348929.qvJAtdUrs7--