mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 19:16:00 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52f73c1530 | |||
| 072d9b81a2 | |||
| 85a3e1cd32 | |||
| 3bf41ad9c9 |
@@ -5,3 +5,4 @@ GFDL-1.3+
|
||||
MIT-Opengroup
|
||||
WXwindows
|
||||
w3c
|
||||
libpng-2.0
|
||||
|
||||
@@ -63,6 +63,8 @@ R-BMA
|
||||
R-BatchJobs
|
||||
R-BayesFactor
|
||||
R-BiasedUrn
|
||||
R-Biobase
|
||||
R-BiocGenerics
|
||||
R-BiocManager
|
||||
R-BoolNet
|
||||
R-BradleyTerry2
|
||||
@@ -267,6 +269,7 @@ R-calibrator
|
||||
R-callr
|
||||
R-car
|
||||
R-carData
|
||||
R-cards
|
||||
R-caret
|
||||
R-cclust
|
||||
R-cellranger
|
||||
@@ -1160,7 +1163,10 @@ avahi
|
||||
awesome-wm
|
||||
awscli
|
||||
axel
|
||||
azure-c-logging
|
||||
azure-configs
|
||||
azure-macro-utils-c
|
||||
azure-umock-c
|
||||
babeltrace
|
||||
babl
|
||||
baloo
|
||||
@@ -1338,6 +1344,7 @@ compat-glibmm-soname24
|
||||
compat-gnome-bluetooth-soname-13
|
||||
compat-gsl-soname27
|
||||
compat-gtksourceview-soname3
|
||||
compat-icu4c-rolling
|
||||
compat-json-c-soname4
|
||||
compat-libffi-soname6
|
||||
compat-libffi-soname7
|
||||
@@ -1688,6 +1695,9 @@ goaccess
|
||||
gobject-introspection
|
||||
golang-github-cpuguy83-go-md2man
|
||||
goocanvas
|
||||
google-benchmark
|
||||
google-cloud-cpp
|
||||
google-crc32c
|
||||
googletest
|
||||
gparted
|
||||
gpaste
|
||||
@@ -1751,6 +1761,7 @@ gzip
|
||||
hamlib
|
||||
haproxy
|
||||
hardinfo
|
||||
hardinfo2
|
||||
harfbuzz
|
||||
haveged
|
||||
hdf5
|
||||
@@ -1761,6 +1772,7 @@ help2man
|
||||
hexchat
|
||||
hexedit
|
||||
hicolor-icon-theme
|
||||
highway
|
||||
hiredis-c
|
||||
hostname
|
||||
howdy
|
||||
@@ -1772,7 +1784,6 @@ hub
|
||||
hugo
|
||||
hunspell
|
||||
hwloc
|
||||
hyperscan
|
||||
hyphen
|
||||
i2c-tools
|
||||
i3
|
||||
@@ -2275,6 +2286,7 @@ libodfgen
|
||||
libogg
|
||||
libopenmpt
|
||||
libopenzwave
|
||||
libopusenc
|
||||
liborcus
|
||||
libosinfo
|
||||
libpagemaker
|
||||
@@ -2420,6 +2432,7 @@ llvm
|
||||
llvm14
|
||||
llvm15
|
||||
llvm16
|
||||
llvm17
|
||||
lm-sensors
|
||||
lmdb
|
||||
logrotate
|
||||
@@ -2492,6 +2505,7 @@ micro-config-drive-aws
|
||||
micro-config-drive-equinix
|
||||
micro-config-drive-oci
|
||||
milou
|
||||
mimalloc
|
||||
mimetreeparser
|
||||
minetest
|
||||
minetest_game
|
||||
@@ -2528,6 +2542,7 @@ motd-update
|
||||
motif
|
||||
mozjs102
|
||||
mozjs115
|
||||
mozjs128
|
||||
mozjs91
|
||||
mpc
|
||||
mpfr
|
||||
@@ -3091,6 +3106,7 @@ perl-IPC-ShareLite
|
||||
perl-IPC-Shareable
|
||||
perl-IPC-System-Simple
|
||||
perl-Image-Base
|
||||
perl-Image-ExifTool
|
||||
perl-Image-Info
|
||||
perl-Image-Size
|
||||
perl-Image-Xbm
|
||||
@@ -3722,6 +3738,7 @@ pypi-aiosignal
|
||||
pypi-aiosmtpd
|
||||
pypi-aiosqlite
|
||||
pypi-alabaster
|
||||
pypi-altair
|
||||
pypi-altgraph
|
||||
pypi-amqp
|
||||
pypi-aniso8601
|
||||
@@ -3861,6 +3878,7 @@ pypi-cons
|
||||
pypi-contextlib2
|
||||
pypi-contextvars
|
||||
pypi-contourpy
|
||||
pypi-controlnet_aux
|
||||
pypi-cookiecutter
|
||||
pypi-coverage
|
||||
pypi-coverage_enable_subprocess
|
||||
@@ -3927,6 +3945,7 @@ pypi-dpcontracts
|
||||
pypi-dulwich
|
||||
pypi-ecdsa
|
||||
pypi-editables
|
||||
pypi-einops
|
||||
pypi-elementpath
|
||||
pypi-enrich
|
||||
pypi-entrypoints
|
||||
@@ -3977,6 +3996,7 @@ pypi-ftfy
|
||||
pypi-funcparserlib
|
||||
pypi-future
|
||||
pypi-gast
|
||||
pypi-gdown
|
||||
pypi-gevent
|
||||
pypi-geventhttpclient
|
||||
pypi-ghp_import
|
||||
@@ -4208,6 +4228,7 @@ pypi-mutagen
|
||||
pypi-mypy_extensions
|
||||
pypi-myst_nb
|
||||
pypi-myst_parser
|
||||
pypi-narwhals
|
||||
pypi-natsort
|
||||
pypi-nbclassic
|
||||
pypi-nbclient
|
||||
@@ -4617,6 +4638,7 @@ pypi-texttable
|
||||
pypi-threadpoolctl
|
||||
pypi-three_merge
|
||||
pypi-tifffile
|
||||
pypi-timm
|
||||
pypi-tinycss2
|
||||
pypi-tldextract
|
||||
pypi-tokenizers
|
||||
@@ -4626,6 +4648,7 @@ pypi-tomli_w
|
||||
pypi-tomlkit
|
||||
pypi-toolz
|
||||
pypi-torchmetrics
|
||||
pypi-torchvision
|
||||
pypi-tornado
|
||||
pypi-tornado_xstatic
|
||||
pypi-tox
|
||||
@@ -4807,6 +4830,7 @@ qhull
|
||||
qmapshack
|
||||
qml-box2d
|
||||
qpdf
|
||||
qpl
|
||||
qqc2-desktop-style
|
||||
qrencode
|
||||
qscintilla
|
||||
@@ -5094,6 +5118,7 @@ tig
|
||||
tigervnc
|
||||
time
|
||||
tini
|
||||
tinyxml2
|
||||
tiptop
|
||||
tk
|
||||
tmux
|
||||
@@ -5145,7 +5170,9 @@ vala
|
||||
valgrind
|
||||
valijson
|
||||
valkey
|
||||
vapoursynth
|
||||
vbox-integration
|
||||
vectorscan
|
||||
vid.stab
|
||||
vifm
|
||||
vim
|
||||
@@ -5179,10 +5206,12 @@ wget
|
||||
which
|
||||
whois
|
||||
wine
|
||||
winegui
|
||||
wireless-regdb-master
|
||||
wireplumber
|
||||
wireshark
|
||||
wl-clipboard
|
||||
wlrobs
|
||||
wlroots
|
||||
wmctrl
|
||||
woff2
|
||||
@@ -5200,6 +5229,7 @@ xapian-core
|
||||
xastir
|
||||
xauth
|
||||
xbitmaps
|
||||
xboxdrv
|
||||
xcb-proto
|
||||
xcb-util-cursor
|
||||
xcb-util-xrm
|
||||
@@ -5276,6 +5306,7 @@ xscreensaver
|
||||
xsel
|
||||
xset
|
||||
xsetroot
|
||||
xsimd
|
||||
xss-lock
|
||||
xterm
|
||||
xtrans
|
||||
|
||||
@@ -82,7 +82,11 @@ def update_cargo_vendor(path, name, git):
|
||||
shell=True, check=True, stdout=subprocess.DEVNULL)
|
||||
repo = Repo(vendor_path)
|
||||
if not (len(repo.untracked_files) > 0 or repo.is_dirty()):
|
||||
return False, ""
|
||||
# Always use the newest tag as sometimes a new tag will
|
||||
# be created but the package won't be updated to use it
|
||||
# for a different failure reason.
|
||||
tag = sorted(repo.tags, key=lambda x: x.name, reverse=True)[0]
|
||||
return tag, cargo_vendors
|
||||
subprocess.run('git add .', cwd=vendor_path, shell=True, check=True,
|
||||
stdout=subprocess.DEVNULL)
|
||||
subprocess.run('git commit -m "vendor update"', cwd=vendor_path,
|
||||
@@ -139,7 +143,6 @@ def update_cargo_sources(name, tag, cargo_vendors):
|
||||
|
||||
|
||||
def main():
|
||||
updated = False
|
||||
args = get_args()
|
||||
|
||||
vtype = vendor_check()
|
||||
@@ -150,13 +153,11 @@ def main():
|
||||
tdir = setup_content(args.url)
|
||||
if vtype == 'cargo':
|
||||
vdir = setup_cargo_vendor(tdir)
|
||||
if vdir:
|
||||
if not vdir:
|
||||
print(args.archives)
|
||||
else:
|
||||
tag, cargo_vendors = update_cargo_vendor(vdir, args.name, args.git)
|
||||
if tag:
|
||||
update_cargo_sources(args.name, tag, cargo_vendors)
|
||||
updated = True
|
||||
if not updated:
|
||||
print(args.archives)
|
||||
update_cargo_sources(args.name, tag, cargo_vendors)
|
||||
shutil.rmtree(tdir)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user