girar-get-upload-method(1)
| girar-get-upload-method(1) | girar-nmu utils | girar-get-upload-method(1) |
NAME
girar-get-upload-method - get girar upload method (srpm or gear) for a package.
SYNOPSIS
girar-get-upload-method [-m|--missing] [-H|--gitery ssh gitery alias] [-R|--girar ssh girar(gule) alias] [-W|--webery tasks web site] [--web-tasks-url tasks web site url] [-b|--branch repository] [--dry-run] [-P|--profile profile] [-h|--help] [-v|--verbose] [-q|--quiet]
name
DESCRIPTION
girar-get-upload-method name returns: * string 'gear' and exit code 0 if package was uploaded as gear repository; * string 'srpm' and exit code 3 if package was uploaded as srpm package.
if package name can not be found in the repository, in default mode it returns string 'srpm' and exit codes 4-7 (4 - name not found in history, 5 - name found in git history, 6 - name found in srpm history, 7 - name found in both git and srpm history) Also, a warning is printed to stderr.
With --missing option if package name can not be found in the repository it returns string 'missing' and exit code 4.
Note that for simple checks exit code is 0 if package was uploaded as gear repository and not 0 otherwise.
OPTIONS
- -m|--missing|--show-missing
- `Missing' mode. if package name can not be found in the repository, in default mode it returns string 'srpm'. In `Missing' mode it returns string 'missing'.
- -Q|--no-output
- `No output' mode. Only exit code is returned.
- -b|--branch repository branch
- Name of the repository branch. Values: sisyphus|p8|.. Default is sisyphus.
- -R|--girar girar(gyle) ssh alias
- By default, gyle.altlinux.org account should be configured as girar or gyle in ~/.ssh/config. If you do not follow that convention, use -R <your girar ssh alias> option.
- -H|--gitery gitery ssh alias
- Alternative gitery or ssh alias for gitery, for example, git.e2k. If not specified, by default, gitery is used where ssh account is required and git.altlinux.org is used where http:// is enough.
- -W|--webery tasks web site
- Alternative site that hosts girar tasks. If not specified, by default, git.altlinux.org is used.
- [--web-tasks-url tasks web site url]
- The default URL for web task site is http://tasks web site. See --webery for details. --web-tasks-url overrides this URL.
- --dry-run
- Echo state-changing commands instead of doing them. An extra safety. Also a bit useful for debugging.
- -P|--profile profile
- Name of the configuration profile. The profile is loaded as /etc/girar-nmu/profile and $HOME/.config/girar-nmu/profile. Note that default configuration is stored in /etc/girar-nmu/default and $HOME/.config/girar-nmu/default.
- -V|--version
- Print version and exit.
- -v|--verbose
- Verbose. Prints extra information. Multiple -v accumulate. -v -v -v set debug mode (set -x).
- -q|--quiet
- Quiet. Print no warnings.
- -h|--help
- Display this help and exit.
AUTHOR
Written by Igor Vlasenko <viy@altlinux.org>.
COPYING
Copyright (c) 2010-2023 Igor Vlasenko, ALT Linux Team.
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| 2023-11-08 | 2.015.3 |
