mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 11:06:15 +00:00
Compare commits
56 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 | |||
| 1b841e095d | |||
| 579d79ef92 | |||
| d85dfaec30 | |||
| 8787caac84 | |||
| 181006f851 | |||
| 480917e514 | |||
| afab562778 | |||
| 21ae357eeb | |||
| b4989fae9b |
@@ -391,6 +391,17 @@ koji-waitrepo: kojidef
|
||||
koji wait-repo --build=${SRPMVERS} ${WAIT_OPTS} ${KOJI_TAG}-build; \
|
||||
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:
|
||||
|
||||
.PHONY: update
|
||||
|
||||
+9
-3
@@ -126,11 +126,17 @@ endif
|
||||
pull: ${PULL_PKGS}
|
||||
|
||||
#help clean-pkgs-dir: For packages that are no longer present in the distro,
|
||||
#help removes the associated package repos from the ./packages tree
|
||||
#help removes the associated package repos from the ./packages tree and stores
|
||||
#help it in packages_old. If it already exists in packages_old, skip it.
|
||||
clean-pkgs-dir: $(PACKAGES_FILE)
|
||||
@for p in ${PKGS_ORPHANED}; do \
|
||||
echo "Removing $$p from packages, it is no longer in common/packages."; \
|
||||
rm -rf packages/$$p; \
|
||||
mkdir -p packages_old; \
|
||||
if [ -d "packages_old/$$p" ]; then \
|
||||
echo "packages_old/$$p already exists, not touching it"; \
|
||||
else \
|
||||
echo "Moving $$p from packages to packages_old, as it is no longer in common/packages."; \
|
||||
mv packages/$$p packages_old/$$p; \
|
||||
fi; \
|
||||
done
|
||||
@echo "packages directory cleaned";
|
||||
|
||||
|
||||
@@ -92,13 +92,14 @@ def update_cargo_vendor(path, name, git):
|
||||
|
||||
def update_cargo_sources(name, tag):
|
||||
makefile = []
|
||||
options = []
|
||||
archive_match = os.path.join('$(CGIT_BASE_URL)', 'vendor', name,
|
||||
'snapshot', name)
|
||||
with open('Makefile', encoding='utf8') as mfile:
|
||||
for line in mfile.readlines():
|
||||
if line.startswith('ARCHIVES'):
|
||||
if re.match(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz', line):
|
||||
new_archives = re.sub(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz',
|
||||
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"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:
|
||||
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():
|
||||
vtype = vendor_check()
|
||||
|
||||
Reference in New Issue
Block a user