Changeset 8dbb3a0 in rtems-source-builder


Ignore:
Timestamp:
Feb 28, 2016, 11:41:17 PM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
f337f5b5
Parents:
23191a3
Message:

sb: Remove http query flags from the file name if present.

The query flags such as '?h=4.11' to select a branch cannot appear
in the file name on Windows. This patch removes the query part from
the file name.

Update #2616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/download.py

    r23191a3 r8dbb3a0  
    11#
    22# RTEMS Tools Project (http://www.rtems.org/)
    3 # Copyright 2010-2013 Chris Johns (chrisj@rtems.org)
     3# Copyright 2010-2016 Chris Johns (chrisj@rtems.org)
    44# All rights reserved.
    55#
     
    162162            raise error.general('gitweb.cgi path missing p or h: %s' % (url))
    163163        source['file'] = '%s-%s.patch' % (p, h)
     164    #
     165    # Check the source file name for any extra request query data and remove if
     166    # found. Some hosts do not like file names containing them.
     167    #
     168    if '?' in source['file']:
     169        qmark = source['file'].find('?')
     170        source['file'] = source['file'][:qmark]
    164171    #
    165172    # Check local path
Note: See TracChangeset for help on using the changeset viewer.