Merge pull request #64 from terrapkg/w/update

Update
This commit is contained in:
lleyton
2022-12-08 09:12:40 -08:00
committed by GitHub
264 changed files with 239 additions and 2844 deletions
+4 -4
View File
@@ -15,7 +15,7 @@ jobs:
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install packages
run: dnf install -y rpmdevtools git python
run: dnf install -y rpmdevtools git python anda
- name: Checkout
uses: actions/checkout@v3
@@ -28,9 +28,9 @@ jobs:
mkdir -p ${{ runner.temp }}
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
chmod 0700 ${{ runner.temp }}/signing_key
- name: Run Update
run: bash ./update.sh
- name: Run Update (anda)
run: anda update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2 -2
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "adwaita++-icons.spec"
sources = "."
update = ""
}
}
}
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("Bonandry/adwaita-plus"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "authy.spec"
sources = "."
update = ""
}
}
-38
View File
@@ -1,38 +0,0 @@
import os
import re
from requests import get
import json
NAME = "authy"
SPEC = f"{NAME}.spec"
REGEX_VER = r'Version:(\s*)([\.\d]+)\n'
REGEX_SRC = r'Source0:(\s*)([^\n]+)\n'
def run_cmds(*cmds: str):
for cmd in cmds:
print(f"{NAME}: $ {cmd}")
if rc := os.system(cmd):
exit(f"{NAME}: Stopping because {rc=}")
raw = get('https://api.snapcraft.io/v2/snaps/info/authy', headers={'Snap-Device-Series': '16'}).text
data = json.loads(raw)
ver = data['channel-map'][0]['version']
f = open(SPEC, 'r')
content = f.read()
found = re.findall(REGEX_VER, content)
try:
assert found
curver = found[0][1]
if ver == curver:
exit(f"{NAME}: Up to date!")
print(f"{NAME}: {curver} -> {ver}")
except IndexError or AssertionError:
exit(f"{NAME}: Failed to read spec!")
link = data['channel-map'][0]['download']['url']
newspec = re.sub(REGEX_VER, f'Version:{found[0][0]}{ver}\n', content)
newspec = re.sub(REGEX_SRC, f'Source0:{found[0][0]}{link}\n', newspec)
f.close()
f = open(SPEC, 'w')
f.write(newspec)
f.close()
+5
View File
@@ -0,0 +1,5 @@
let req = new_req("https://api.snapcraft.io/v2/snaps/info/authy");
req.head("Snap-Device-Series", "16");
let obj = json(req.get()) @ "channel-map" @ 0;
rpm.version(str(obj @ "version"));
rpm.source(0, str(obj @ "download" @ "url"));
+2 -1
View File
@@ -1,5 +1,6 @@
project "pkg" {
rpm {
spec = "openasar-canary.spec"
update = ""
}
}
}
+11
View File
@@ -0,0 +1,11 @@
let req = new_req("https://api.github.com/repos/GooseMod/OpenAsar/commits/HEAD");
req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`);
let _sha = json(req.get()) @ "sha";
let sha = _sha.str();
let cur = find("%define commit (.+)", rpm.f, 1);
if sha != cur {
print(`openasar-canary: ${cur} -> ${sha}`);
rpm.f = sub("%define commit (.+)", `%define commit ${sha}`, rpm.f);
} else {
print("openasar-canary: Up to date!");
}
+1 -1
View File
@@ -2,4 +2,4 @@ project "pkg" {
rpm {
spec = "distrho.spec"
}
}
}
+1 -2
View File
@@ -1,6 +1,5 @@
project "pkg" {
rpm {
spec = "dart.spec"
sources = "."
}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "budgie-extras.spec"
sources = "."
update = ""
}
}
}
@@ -0,0 +1 @@
rpm.version(gh("UbuntuBudgie/budgie-extras"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "contractor.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'contractor'
REPO = "elementary/contractor"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/contractor"))
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-calculator.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-calculator'
REPO = "elementary/calculator"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/calculator"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-calendar.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-calendar'
REPO = "elementary/calendar"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/calendar"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-camera.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-camera'
REPO = "elementary/camera"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/camera"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-capnet-assist.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-capnet-assist'
REPO = "elementary/capnet-assist"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/capnet-assist"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-code.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-code'
REPO = "elementary/code"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/code"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-files.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-files'
REPO = "elementary/files"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/files"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-greeter.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-greeter'
REPO = "elementary/greeter"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/greeter"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-icon-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-icon-theme'
REPO = "elementary/icons"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/icons"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-music.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-music'
REPO = "elementary/music"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/music"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-notifications.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-notifications'
REPO = "elementary/notifications"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/notifications"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-onboarding.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-onboarding'
REPO = "elementary/onboarding"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/onboarding"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-photos.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-photos'
REPO = "elementary/photos"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/photos"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-print.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-print'
REPO = "elementary/print"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/print"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-screenshot-tool.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-screenshot-tool'
REPO = "elementary/screenshot"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/screenshot"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-settings-daemon.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-settings-daemon'
REPO = "elementary/settings-daemon"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/settings-daemon"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-shortcut-overlay.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-shortcut-overlay'
REPO = "elementary/shortcut-overlay"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/shortcut-overlay"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-sideload.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-sideload'
REPO = "elementary/sideload"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/sideload"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-sound-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-sound-theme'
REPO = "elementary/sound-theme"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/sound-theme"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-terminal.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-terminal'
REPO = "elementary/terminal"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/terminal"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-theme'
REPO = "elementary/stylesheet"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/stylesheet"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-videos.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-videos'
REPO = "elementary/videos"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/videos"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-wallpapers.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-wallpapers'
REPO = "elementary/wallpapers"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/wallpapers"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "gala.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'gala'
REPO = "elementary/gala"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/gala"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "granite-7.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'granite-7'
REPO = "elementary/granite"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/granite"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "pantheon-agent-geoclue2.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'pantheon-agent-geoclue2'
REPO = "elementary/pantheon-agent-geoclue2"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/pantheon-agent-geoclue2"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "pantheon-agent-polkit.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'pantheon-agent-polkit'
REPO = "elementary/pantheon-agent-polkit"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/pantheon-agent-polkit"));
@@ -1,6 +1,5 @@
project "pkg" {
rpm {
spec = "pantheon-session-settings.spec"
sources = "."
}
}
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "switchboard-plug-a11y.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'switchboard-plug-a11y'
REPO = "elementary/switchboard-plug-a11y"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/switchboard-plug-a11y"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "switchboard-plug-about.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'switchboard-plug-about'
REPO = "elementary/switchboard-plug-about"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/switchboard-plug-about"));

Some files were not shown because too many files have changed in this diff Show More