mirror of
https://github.com/clearlinux/common.git
synced 2026-09-07 06:01:35 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2cd51b5f2 | ||
|
|
ed1ef58d9a | ||
|
|
497f2a66f4 | ||
|
|
3b8d3c66ea | ||
|
|
373cbad44c | ||
|
|
0fcc984675 | ||
|
|
78023bd74a | ||
|
|
d2b5b72346 | ||
|
|
4953d9e087 | ||
|
|
ee37765ed2 | ||
|
|
492abf6d32 | ||
|
|
2562a8c7fb | ||
|
|
5fd02ece36 | ||
|
|
039e63fb1e | ||
|
|
dcf8bc4978 | ||
|
|
3951710117 | ||
|
|
504d77bc58 | ||
|
|
d3514ae496 | ||
|
|
4403e9280a | ||
|
|
0aed61be35 | ||
|
|
cdda6bcece | ||
|
|
61203724ab | ||
|
|
3dfbdf4c58 | ||
|
|
e0e5b4b1a7 | ||
|
|
b95dd8c67f | ||
|
|
8ed4d2d0de | ||
|
|
023a2da624 | ||
|
|
cdd4aeebe2 | ||
|
|
ee744332e0 | ||
|
|
353042a9bd | ||
|
|
1a0366ab21 | ||
|
|
4080b704f3 | ||
|
|
4626f673ca | ||
|
|
5121c565eb | ||
|
|
a26aea0290 | ||
|
|
54a9f967c3 | ||
|
|
9153630dcb | ||
|
|
d80039c90b | ||
|
|
f5a3630590 | ||
|
|
75cb8bf424 | ||
|
|
2a586be1b3 | ||
|
|
93fccd1edf | ||
|
|
9527057e5e | ||
|
|
f3500feb2d | ||
|
|
05598abd55 | ||
|
|
2b0163ef73 | ||
|
|
3f2b9100e6 |
@@ -391,6 +391,17 @@ koji-waitrepo: kojidef
|
|||||||
koji wait-repo --build=${SRPMVERS} ${WAIT_OPTS} ${KOJI_TAG}-build; \
|
koji wait-repo --build=${SRPMVERS} ${WAIT_OPTS} ${KOJI_TAG}-build; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
.PHONY: koji-tag
|
||||||
|
#help koji-tag: runs koji tag-pkg on what's in the current specfile's nvr
|
||||||
|
koji-tag:
|
||||||
|
koji tag-pkg dist-clear $(SRPMVERS)
|
||||||
|
|
||||||
|
.PHONY: koji-untag
|
||||||
|
#help koji-untag: runs koji untag-pkg on what's in the current specfile's nvr
|
||||||
|
koji-untag:
|
||||||
|
koji untag-pkg dist-clear $(SRPMVERS)
|
||||||
|
|
||||||
|
|
||||||
update-versions:
|
update-versions:
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
|
|||||||
@@ -92,13 +92,14 @@ def update_cargo_vendor(path, name, git):
|
|||||||
|
|
||||||
def update_cargo_sources(name, tag):
|
def update_cargo_sources(name, tag):
|
||||||
makefile = []
|
makefile = []
|
||||||
|
options = []
|
||||||
archive_match = os.path.join('$(CGIT_BASE_URL)', 'vendor', name,
|
archive_match = os.path.join('$(CGIT_BASE_URL)', 'vendor', name,
|
||||||
'snapshot', name)
|
'snapshot', name)
|
||||||
with open('Makefile', encoding='utf8') as mfile:
|
with open('Makefile', encoding='utf8') as mfile:
|
||||||
for line in mfile.readlines():
|
for line in mfile.readlines():
|
||||||
if line.startswith('ARCHIVES'):
|
if line.startswith('ARCHIVES'):
|
||||||
if re.match(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz', line):
|
if re.match(archive_match + r'[a-zA-Z0-9_\-.]+\.tar\.xz', line):
|
||||||
new_archives = re.sub(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz',
|
new_archives = re.sub(archive_match + r'[a-zA-Z0-9_\-.]+\.tar\.xz',
|
||||||
f"{archive_match}-{tag}.tar.xz\n", line)
|
f"{archive_match}-{tag}.tar.xz\n", line)
|
||||||
else:
|
else:
|
||||||
new_archives = f"ARCHIVES = {archive_match}-{tag}.tar.xz ./vendor\n"
|
new_archives = f"ARCHIVES = {archive_match}-{tag}.tar.xz ./vendor\n"
|
||||||
@@ -108,6 +109,20 @@ def update_cargo_sources(name, tag):
|
|||||||
with open('Makefile', 'w', encoding='utf8') as mfile:
|
with open('Makefile', 'w', encoding='utf8') as mfile:
|
||||||
mfile.writelines(makefile)
|
mfile.writelines(makefile)
|
||||||
|
|
||||||
|
with open('options.conf', encoding='utf8') as ofile:
|
||||||
|
for line in ofile.readlines():
|
||||||
|
if line.startswith('archives'):
|
||||||
|
if re.match(archive_match + r'[a-zA-Z0-9_\-.]+\.tar\.xz', line):
|
||||||
|
new_archives = re.sub(archive_match + r'[a-zA-Z0-9_\-.]+\.tar\.xz',
|
||||||
|
f"{archive_match}-{tag}.tar.xz\n", line)
|
||||||
|
else:
|
||||||
|
new_archives = f"achives = {archive_match}-{tag}.tar.xz ./vendor\n"
|
||||||
|
options.append(new_archives)
|
||||||
|
else:
|
||||||
|
options.append(line)
|
||||||
|
with open('options.conf', 'w', encoding='utf8') as ofile:
|
||||||
|
ofile.writelines(options)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
vtype = vendor_check()
|
vtype = vendor_check()
|
||||||
|
|||||||
Reference in New Issue
Block a user