Merge branch 'rewrite-gitlab-repo-urls' into 'master'

rewrite gitlab repo URLs

See merge request fdroid/fdroiddata!5605
This commit is contained in:
Hans-Christoph Steiner 2019-10-03 12:25:37 +00:00
commit 87808ae4b8
59 changed files with 92 additions and 58 deletions

View file

@ -17,7 +17,7 @@ Description: |-
more difficult! Can you make it, Captain? more difficult! Can you make it, Captain?
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_critical_velocity Repo: https://gitlab.com/alaskalinuxuser/app_critical_velocity.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -18,7 +18,7 @@ Description: |-
that require timers! that require timers!
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_hourglass Repo: https://gitlab.com/alaskalinuxuser/app_hourglass.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -15,7 +15,7 @@ Description: |-
controls, this helps you focus on what is really important: the posts! controls, this helps you focus on what is really important: the posts!
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_justcraigslist Repo: https://gitlab.com/alaskalinuxuser/app_justcraigslist.git
Builds: Builds:
- versionName: '1.1' - versionName: '1.1'

View file

@ -20,7 +20,7 @@ Description: |-
apps and "small" apps for easy to understand and usable code. apps and "small" apps for easy to understand and usable code.
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_justnotes Repo: https://gitlab.com/alaskalinuxuser/app_justnotes.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -19,7 +19,7 @@ Description: |-
RequiresRoot: 'True' RequiresRoot: 'True'
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_ril_control Repo: https://gitlab.com/alaskalinuxuser/app_ril_control.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -23,7 +23,7 @@ Description: |-
strike "midnight"! strike "midnight"!
RepoType: git RepoType: git
Repo: https://gitlab.com/alaskalinuxuser/app_ship_capt_crew Repo: https://gitlab.com/alaskalinuxuser/app_ship_capt_crew.git
Builds: Builds:
- versionName: '1.3' - versionName: '1.3'

View file

@ -18,7 +18,7 @@ Description: |-
* Available in English and Italian * Available in English and Italian
RepoType: git RepoType: git
Repo: https://gitlab.com/harisont/Librery Repo: https://gitlab.com/harisont/Librery.git
Builds: Builds:
- versionName: '3.0' - versionName: '3.0'

View file

@ -18,7 +18,7 @@ Description: |-
* root capabilities (enable in settings if your device is rooted) * root capabilities (enable in settings if your device is rooted)
RepoType: git RepoType: git
Repo: https://gitlab.com/axet/android-file-manager Repo: https://gitlab.com/axet/android-file-manager.git
Builds: Builds:
- versionName: 0.2.58 - versionName: 0.2.58

View file

@ -21,7 +21,7 @@ Description: |-
* [https://www.peppercarrot.com/ Pepper & Carrot] * [https://www.peppercarrot.com/ Pepper & Carrot]
RepoType: git RepoType: git
Repo: https://gitlab.com/halftough/webcom-reader Repo: https://gitlab.com/halftough/webcom-reader.git
Builds: Builds:
- versionName: 0.2.0 - versionName: 0.2.0

View file

@ -13,7 +13,7 @@ Description: |-
WARNING: This app is no longer maintained. WARNING: This app is no longer maintained.
RepoType: git RepoType: git
Repo: https://gitlab.com/krt/jfcups-service Repo: https://gitlab.com/krt/jfcups-service.git
Builds: Builds:
- versionName: '0.23' - versionName: '0.23'

View file

@ -14,7 +14,7 @@ Litecoin: LRmhvGbKNXFLTxyK8Q9zBxDXjBWm6Rzt34
AutoName: Keyboard Switcher AutoName: Keyboard Switcher
RepoType: git RepoType: git
Repo: https://gitlab.com/kunzisoft/Android-KeyboardSwitcher Repo: https://gitlab.com/kunzisoft/Android-KeyboardSwitcher.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -33,7 +33,7 @@ Description: |-
[https://gitlab.com/vijai/screenrecorder/issues/72#note_180392881 here] [https://gitlab.com/vijai/screenrecorder/issues/72#note_180392881 here]
RepoType: git RepoType: git
Repo: https://gitlab.com/vijai/screenrecorder Repo: https://gitlab.com/vijai/screenrecorder.git
Builds: Builds:
- versionName: '1.1' - versionName: '1.1'

View file

@ -24,7 +24,7 @@ Description: |-
* READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE - For opening databases from storage or writing exported csv file * READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE - For opening databases from storage or writing exported csv file
RepoType: git RepoType: git
Repo: https://gitlab.com/vijai/SqliteDBViewer Repo: https://gitlab.com/vijai/SqliteDBViewer.git
Builds: Builds:
- versionName: 1.0.0 - versionName: 1.0.0

View file

@ -15,7 +15,7 @@ Description: |-
chosen together so that the sorting improves as the app is used. chosen together so that the sorting improves as the app is used.
RepoType: git RepoType: git
Repo: https://gitlab.com/SunyataZero/kindmind Repo: https://gitlab.com/SunyataZero/kindmind.git
Builds: Builds:
- versionName: 1.0.0_BETA - versionName: 1.0.0_BETA

View file

@ -16,7 +16,7 @@ Description: |-
This application is a clone of Jack Palevich's [[jackpal.androidterm]]. This application is a clone of Jack Palevich's [[jackpal.androidterm]].
RepoType: git RepoType: git
Repo: https://gitlab.com/termapps/termoneplus Repo: https://gitlab.com/termapps/termoneplus.git
Builds: Builds:
- versionName: 3.0.0 - versionName: 3.0.0

View file

@ -22,7 +22,7 @@ Description: |-
nothing that I can do about it. nothing that I can do about it.
RepoType: git RepoType: git
Repo: https://gitlab.com/danielmeek32/FlexibleWallpaper Repo: https://gitlab.com/danielmeek32/FlexibleWallpaper.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -9,7 +9,7 @@ Changelog: https://gitlab.com/HS_Aalen_RN/Aalener_Optik-Formelrechner/tags
AutoName: Aalener Optik-Formelrechner AutoName: Aalener Optik-Formelrechner
RepoType: git RepoType: git
Repo: https://gitlab.com/HS_Aalen_RN/Aalener_Optik-Formelrechner Repo: https://gitlab.com/HS_Aalen_RN/Aalener_Optik-Formelrechner.git
Builds: Builds:
- versionName: '1.10' - versionName: '1.10'

View file

@ -8,7 +8,7 @@ Changelog: https://gitlab.com/bloosberg/child-resus-calc/blob/HEAD/CHANGELOG
AutoName: Child Resus Calc AutoName: Child Resus Calc
RepoType: git RepoType: git
Repo: https://gitlab.com/bloosberg/child-resus-calc Repo: https://gitlab.com/bloosberg/child-resus-calc.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -15,7 +15,7 @@ Description: |-
simulated. Finally the pipes can be linked together to form a network. simulated. Finally the pipes can be linked together to form a network.
RepoType: git RepoType: git
Repo: https://gitlab.com/kollo/Calcvac-Android Repo: https://gitlab.com/kollo/Calcvac-Android.git
Builds: Builds:
- versionName: 2.01-1 - versionName: 2.01-1

View file

@ -16,7 +16,7 @@ Description: |-
freifunk-karte.de freifunk-karte.de
RepoType: git RepoType: git
Repo: https://gitlab.com/TheRMaverick/Freifunk-Karte Repo: https://gitlab.com/TheRMaverick/Freifunk-Karte.git
Builds: Builds:
- versionName: '1.4' - versionName: '1.4'

View file

@ -18,7 +18,7 @@ Description: |-
location of the vehicle. location of the vehicle.
RepoType: git RepoType: git
Repo: https://gitlab.com/tobiaswkjeldsen/carwingsflutter Repo: https://gitlab.com/tobiaswkjeldsen/carwingsflutter.git
Builds: Builds:
- versionName: 1.5.2 - versionName: 1.5.2

View file

@ -8,7 +8,7 @@ Changelog: https://gitlab.com/jnda/IPCalc/blob/HEAD/CHANGELOG
AutoName: IPCalc AutoName: IPCalc
RepoType: git RepoType: git
Repo: https://gitlab.com/jnda/IPCalc Repo: https://gitlab.com/jnda/IPCalc.git
Builds: Builds:
- versionName: '1.4' - versionName: '1.4'

View file

@ -15,7 +15,7 @@ Description: |-
routes. routes.
RepoType: git RepoType: git
Repo: https://gitlab.com/nickw1/opentrail Repo: https://gitlab.com/nickw1/opentrail.git
Builds: Builds:
- versionName: '0.4' - versionName: '0.4'

View file

@ -48,7 +48,8 @@ Builds:
commit: 0.3.1 commit: 0.3.1
timeout: 2000 timeout: 2000
subdir: app subdir: app
sudo: apt-get -qy install --no-install-recommends -t stretch-backports diffoscope apktool enjarify unzip xxd sudo: apt-get -qy install --no-install-recommends -t stretch-backports diffoscope
apktool enjarify unzip xxd
gradle: gradle:
- yes - yes
prebuild: echo 'android.lintOptions.checkReleaseBuilds false' >> build.gradle prebuild: echo 'android.lintOptions.checkReleaseBuilds false' >> build.gradle

View file

@ -17,7 +17,7 @@ Description: |-
evil. evil.
RepoType: git RepoType: git
Repo: https://gitlab.com/f-droid-mirrors/empty Repo: https://gitlab.com/f-droid-mirrors/empty.git
Builds: Builds:
- versionName: 1.14.5-53 - versionName: 1.14.5-53

View file

@ -13,7 +13,7 @@ LiberapayID: '1520530'
AutoName: MoneyBuster AutoName: MoneyBuster
RepoType: git RepoType: git
Repo: https://gitlab.com/eneiluj/moneybuster Repo: https://gitlab.com/eneiluj/moneybuster.git
Builds: Builds:
- versionName: 0.0.4 - versionName: 0.0.4

View file

@ -13,7 +13,7 @@ LiberapayID: '1520530'
AutoName: PhoneTrack AutoName: PhoneTrack
RepoType: git RepoType: git
Repo: https://gitlab.com/eneiluj/phonetrack-android Repo: https://gitlab.com/eneiluj/phonetrack-android.git
Builds: Builds:
- versionName: 0.0.1 - versionName: 0.0.1

View file

@ -21,7 +21,7 @@ Description: |-
* Record equipment usage * Record equipment usage
RepoType: git RepoType: git
Repo: https://gitlab.com/brvier/ForRunners Repo: https://gitlab.com/brvier/ForRunners.git
Builds: Builds:
- versionName: 1.1.1 - versionName: 1.1.1

View file

@ -16,7 +16,7 @@ Bitcoin: 1GRgEnKujorJJ9VBa76g8cp3sfoWtQqSs4
Name: OsmAnd~ Name: OsmAnd~
RepoType: git RepoType: git
Repo: https://gitlab.com/f-droid-mirrors/OsmAnd-submodules Repo: https://gitlab.com/f-droid-mirrors/OsmAnd-submodules.git
Builds: Builds:
- versionName: 1.8.2 - versionName: 1.8.2

View file

@ -27,7 +27,7 @@ Description: |-
RequiresRoot: 'yes' RequiresRoot: 'yes'
RepoType: git RepoType: git
Repo: https://gitlab.com/sulincix/disable-delete-gapps Repo: https://gitlab.com/sulincix/disable-delete-gapps.git
Builds: Builds:
- versionName: '2.0' - versionName: '2.0'

View file

@ -27,7 +27,7 @@ Description: |-
* Standard structure * Standard structure
RepoType: git RepoType: git
Repo: https://gitlab.com/droidtr/org.droidtr.keyboard Repo: https://gitlab.com/droidtr/org.droidtr.keyboard.git
Builds: Builds:
- versionName: '5.5' - versionName: '5.5'

View file

@ -14,7 +14,7 @@ Description: |-
[https://termbin.com/] for additional details. [https://termbin.com/] for additional details.
RepoType: git RepoType: git
Repo: https://gitlab.com/droidtr/termbin-client Repo: https://gitlab.com/droidtr/termbin-client.git
Builds: Builds:
- versionName: '1.1' - versionName: '1.1'

View file

@ -14,7 +14,7 @@ Bitcoin: 15u8aAPK4jJ5N8wpWJ5gutAyyeHtKX5i18
AutoName: F-Droid OTA AutoName: F-Droid OTA
RepoType: git RepoType: git
Repo: https://gitlab.com/fdroid/fdroidclient Repo: https://gitlab.com/fdroid/fdroidclient.git
Builds: Builds:
- versionName: 1.0.3 - versionName: 1.0.3

View file

@ -32,7 +32,7 @@ Description: |-
* Support for Android 7.1 shortcuts * Support for Android 7.1 shortcuts
RepoType: git RepoType: git
Repo: https://gitlab.com/glucosio/glucosio-android Repo: https://gitlab.com/glucosio/glucosio-android.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -17,7 +17,7 @@ Description: |-
useful features. useful features.
RepoType: git RepoType: git
Repo: https://gitlab.com/HoraApps/LeafPic Repo: https://gitlab.com/HoraApps/LeafPic.git
Builds: Builds:
- versionName: v0.5.2 - versionName: v0.5.2

View file

@ -15,7 +15,7 @@ Description: |-
synchronize your recipes between devices (mobile and desktop) and share them with your friends. synchronize your recipes between devices (mobile and desktop) and share them with your friends.
RepoType: git RepoType: git
Repo: https://gitlab.com/ddorian/openrecipes/ Repo: https://gitlab.com/ddorian/openrecipes.git
Builds: Builds:
- versionName: 0.2.1 - versionName: 0.2.1

View file

@ -10,7 +10,7 @@ AutoName: Wrong PIN Shutdown
RequiresRoot: 'yes' RequiresRoot: 'yes'
RepoType: git RepoType: git
Repo: https://gitlab.com/nuntius35/wps Repo: https://gitlab.com/nuntius35/wps.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -36,7 +36,7 @@ Description: |-
* And more * And more
RepoType: git RepoType: git
Repo: https://gitlab.com/proninyaroslav/libretorrent Repo: https://gitlab.com/proninyaroslav/libretorrent.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -13,7 +13,7 @@ Description: |-
RequiresRoot: 'yes' RequiresRoot: 'yes'
RepoType: git RepoType: git
Repo: https://gitlab.com/derSchabi/Etherwake-app Repo: https://gitlab.com/derSchabi/Etherwake-app.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -21,7 +21,7 @@ Description: |-
'''Note:''' this app is currently unmaintained and looking for a new maintainer. '''Note:''' this app is currently unmaintained and looking for a new maintainer.
RepoType: git RepoType: git
Repo: https://gitlab.com/derSchabi/OCBookmarks Repo: https://gitlab.com/derSchabi/OCBookmarks.git
Builds: Builds:
- versionName: '1.1' - versionName: '1.1'

View file

@ -21,7 +21,7 @@ Description: |-
'''Note:''' this app is currently unmaintained and looking for a new maintainer. '''Note:''' this app is currently unmaintained and looking for a new maintainer.
RepoType: git RepoType: git
Repo: https://gitlab.com/derSchabi/OCBookmarks Repo: https://gitlab.com/derSchabi/OCBookmarks.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -23,7 +23,7 @@ Description: |-
* put alarms off via NFC tag * put alarms off via NFC tag
RepoType: git RepoType: git
Repo: https://gitlab.com/derSchabi/Terminightor Repo: https://gitlab.com/derSchabi/Terminightor.git
Builds: Builds:
- versionName: '0.8' - versionName: '0.8'

View file

@ -71,7 +71,7 @@ Description: |-
'''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html] '''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -20,7 +20,7 @@ Description: |-
* [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots] * [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -18,7 +18,7 @@ Description: |-
* [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots] * [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.2' - versionName: '1.2'

View file

@ -22,7 +22,7 @@ Description: |-
* [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots] * [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.2' - versionName: '1.2'

View file

@ -20,7 +20,7 @@ Description: |-
* [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots] * [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.2' - versionName: '1.2'

View file

@ -20,7 +20,7 @@ Description: |-
* [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots] * [http://members.iinet.net.au/~ninelima/efis/datapac.html Screenshots]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.2' - versionName: '1.2'

View file

@ -57,7 +57,7 @@ Description: |-
'''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html] '''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -54,7 +54,7 @@ Description: |-
'''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html] '''Screenshots''' [http://members.iinet.net.au/~ninelima/efis/gallery.html]
RepoType: git RepoType: git
Repo: https://gitlab.com/ninelima/kwikEFIS Repo: https://gitlab.com/ninelima/kwikEFIS.git
Builds: Builds:
- versionName: 2.2.0 - versionName: 2.2.0

View file

@ -15,7 +15,7 @@ Description: |-
* It is important to note that none of the FiSSH apps have access to private key file and that FiSSH uses TLS sockets with certificate validation to prevent man-in-the-middle attacks! * It is important to note that none of the FiSSH apps have access to private key file and that FiSSH uses TLS sockets with certificate validation to prevent man-in-the-middle attacks!
RepoType: git RepoType: git
Repo: https://gitlab.com/ioanm/FiSSH-App Repo: https://gitlab.com/ioanm/FiSSH-App.git
Builds: Builds:
- versionName: '2.5' - versionName: '2.5'

View file

@ -28,7 +28,7 @@ Description: |-
minutes out of your schedule. minutes out of your schedule.
RepoType: git RepoType: git
Repo: https://gitlab.com/tslocum/meditationassistant Repo: https://gitlab.com/tslocum/meditationassistant.git
Builds: Builds:
- versionName: 1.2.7 - versionName: 1.2.7

View file

@ -19,7 +19,7 @@ Description: |-
WORK. WORK.
RepoType: git RepoType: git
Repo: https://gitlab.com/neothefox/LayTray Repo: https://gitlab.com/neothefox/LayTray.git
Builds: Builds:
- versionName: '1.6' - versionName: '1.6'

View file

@ -7,7 +7,7 @@ IssueTracker: https://gitlab.com/superustats/superustats/issues
AutoName: SuperUStats AutoName: SuperUStats
RepoType: git RepoType: git
Repo: https://gitlab.com/superustats/superustats Repo: https://gitlab.com/superustats/superustats.git
Builds: Builds:
- versionName: '1.0' - versionName: '1.0'

View file

@ -33,7 +33,7 @@ Description: |-
Remember that they show ads to be able to keep their site up, so try not to think too harshly of them. Remember that they show ads to be able to keep their site up, so try not to think too harshly of them.
RepoType: git RepoType: git
Repo: https://gitlab.com/TacoTheDank/APKMirror Repo: https://gitlab.com/TacoTheDank/APKMirror.git
Builds: Builds:
- versionName: 1.0.4 - versionName: 1.0.4

View file

@ -18,7 +18,7 @@ Description: |-
permission from the user to be able to scan for Wi-Fi networks. permission from the user to be able to scan for Wi-Fi networks.
RepoType: git RepoType: git
Repo: https://gitlab.com/beegee1962/painlessmesh_android Repo: https://gitlab.com/beegee1962/painlessmesh_android.git
Builds: Builds:
- versionName: '1.4' - versionName: '1.4'

View file

@ -7,7 +7,7 @@ IssueTracker: https://gitlab.com/x653/all_in_gold/issues
AutoName: All In Gold AutoName: All In Gold
RepoType: git RepoType: git
Repo: https://gitlab.com/x653/all_in_gold Repo: https://gitlab.com/x653/all_in_gold.git
Builds: Builds:
- versionName: '1.2' - versionName: '1.2'

View file

@ -7,7 +7,7 @@ IssueTracker: https://gitlab.com/x653/bullseye/issues
AutoName: Bullseye AutoName: Bullseye
RepoType: git RepoType: git
Repo: https://gitlab.com/x653/bullseye Repo: https://gitlab.com/x653/bullseye.git
Builds: Builds:
- versionName: '0.1' - versionName: '0.1'

33
tools/rewrite-git-redirects.py Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/env python3
#
#
# GitLab gives a warning every time if the git URL is redirected. So this
# rewrites all GitLab URLs so they are no longer a redirect.
import glob
import os
import re
import sys
import yaml
os.chdir(os.path.dirname(__file__) + '/../')
if len(sys.argv) > 1:
files = sys.argv[1:]
else:
files = sorted(glob.glob('metadata/*.yml'))
pattern = re.compile(r'Repo: .*')
for f in files:
with open(f) as fp:
data = yaml.load(fp)
repo_url = None
if 'Repo' in data:
repo_url = data['Repo'].strip().rstrip('/')
if repo_url and not repo_url.endswith('.git') and repo_url.startswith('https://gitlab'):
new_url = repo_url + '.git'
print("Repo:", data['Repo'], "\n --> " + new_url + "'")
with open(f) as fp:
raw = fp.read()
with open(f, 'w') as fp:
fp.write(pattern.sub('Repo: ' + new_url, raw))