Changeset 169
- Timestamp:
- 02/01/07 17:43:44 (6 years ago)
- Files:
-
- trunk/cheesecake/cheesecake_index.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cheesecake/cheesecake_index.py
r168 r169 776 776 if not found_on_cheeseshop: 777 777 if distance_from_pypi > 0: 778 self.value += (distance_from_pypi - 1) * self.distance_penalty778 self.value += (distance_from_pypi - 1) * self.distance_penalty 779 779 self.details += " following %d link" % distance_from_pypi 780 780 … … 1500 1500 if s: 1501 1501 inspected_url = s.group(1) 1502 if not re.search(r"www.python.org\/pypi", inspected_url):1502 if "python.org/pypi" not in inspected_url: 1503 1503 self.distance_from_pypi += 1 1504 1504 continue … … 1515 1515 self.found_locally = True 1516 1516 1517 if re.search(r"cheeseshop.python.org", self.download_url):1517 if "cheeseshop.python.org" in self.download_url: 1518 1518 self.found_on_cheeseshop = True 1519 1519
