--- ketchup-0.5.orig 2004-04-11 11:04:42.000000000 +0300 +++ ketchup-0.5 2004-04-24 16:22:16.000000000 +0300 @@ -221,6 +221,13 @@ def patch_path(ver): return os.path.join(archive, os.path.basename(version_url(ver))) +def instring(haystack, needle): + try: + haystack.index(needle) + except ValueError: + return 0 + return 1 + def get_patch(ver): """Return the path to patch for given ver, downloading if necessary""" f = patch_path(ver) @@ -232,7 +239,7 @@ if options.dryrun: return f p = urllib.urlopen(url).read() - if "