[Yum-devel] [PATCH 1/3] Add "re_remote_url()" for testing if a url is "remote"

Seth Vidal skvidal at fedoraproject.org
Mon Nov 16 20:32:26 UTC 2009



On Mon, 16 Nov 2009, James Antill wrote:

> ---
> yum/misc.py |    5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/yum/misc.py b/yum/misc.py
> index ee1da35..2d0ed0f 100644
> --- a/yum/misc.py
> +++ b/yum/misc.py
> @@ -125,6 +125,11 @@ def re_full_search_needed(s):
>             return True
>     return False
>
> +def re_remote_url(s):
> +    """ Tests if a string is a "remote" URL, http, https, ftp. """
> +    return (s.startswith("http://") or s.startswith("https://") or
> +            s.startswith("ftp://"))
> +


ACK on these three patches.

-sv



More information about the Yum-devel mailing list