diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-25 09:26:59 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-25 09:26:59 +0000 |
| commit | 1586b05a45c28212b81c7ef09ec3ebb69cc80319 (patch) | |
| tree | ed46425a8d8df6c7e7deb37532490f2af7ed1419 /src/create_pkg.c | |
| parent | 2dea5bc2ad4281042758f0e9bfe98fa96bc89412 (diff) | |
declare permanent version numbers in repos
Diffstat (limited to 'src/create_pkg.c')
| -rw-r--r-- | src/create_pkg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/create_pkg.c b/src/create_pkg.c index 5bd91fa..4f4781e 100644 --- a/src/create_pkg.c +++ b/src/create_pkg.c @@ -14,6 +14,14 @@ Pkg create_pkg(const char *arg, const char *target) { pkg.ver = "HEAD"; pkg.is_local = false; + cache_repos(); + for (int i = 0; i < cached_repos_count; i++) { + if (strcmp(cached_repos[i].source_key, arg) == 0) { + pkg.ver = cached_repos[i].version; + printf("THIS IS THE VERSION NUMBER: %s\n", pkg.ver); + } + } + char* argver = strchr(arg, '@'); char* new_arg = strdup(arg); if (argver) { |
