Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Regex repairs and epoch stripping fix #410

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Regex repairs and epoch stripping fix #410

merged 3 commits into from
Jan 12, 2021

Commits on Dec 17, 2020

  1. util: Repair parsing regexes

    The changes in 84d67af made the regexes accept more inputs as valid than
    originally intended due to the use of PCRE shorthands (\w, \d, etc.).
    This commit partially reverts to the original and adds the ASCII flag to
    `re.compile()` to ensure only characters in the ASCII range are
    accepted for the shorthands.
    mgrabovsky committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    40aeb90 View commit details
    Browse the repository at this point in the history
  2. retrace: Correct stripping of epoch number

    The epoch number in the NEVR form appears just after the package name
    so stripping any text before it completely breaks the system.
    
    After this change, the first number followed by a colon (if any such is
    present) is removed, since this must be the epoch.
    mgrabovsky committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    41cc995 View commit details
    Browse the repository at this point in the history
  3. retrace: Minor code style improvements

    * Refactor control flow in a Pythonic style.
    * Replace a needless list comprehension with a generator.
    * Use format string literals.
    mgrabovsky committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    1619216 View commit details
    Browse the repository at this point in the history