X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils.py;fp=utils.py;h=9b3ab2a1af6977352c74e2ec97cda16ee2384de7;hb=5fed805777228403024d131fb189a1a1b2d53c34;hp=c2424cf768933101f6901289d96d000b90f2802a;hpb=aacb40191ca186ea8c9f44e5ba3b1b468b526484;p=dak.git diff --git a/utils.py b/utils.py index c2424cf7..9b3ab2a1 100644 --- a/utils.py +++ b/utils.py @@ -2,7 +2,7 @@ # Utility functions # Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup -# $Id: utils.py,v 1.62 2004-01-21 03:48:58 troup Exp $ +# $Id: utils.py,v 1.63 2004-02-27 20:07:40 troup Exp $ ################################################################################ @@ -93,7 +93,7 @@ def extract_component_from_section(section): if section.find('/') != -1: component = section.split('/')[0]; - if component.lower() == "non-us" and section.count('/') > 0: + if component.lower() == "non-us" and section.find('/') != -1: s = component + '/' + section.split('/')[1]; if Cnf.has_key("Component::%s" % s): # Avoid e.g. non-US/libs component = s;