Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbstrap update #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

xbstrap update #75

wants to merge 1 commit into from

Conversation

no92
Copy link
Member

@no92 no92 commented Aug 9, 2023

No description provided.

@avdgrinten
Copy link
Member

What's the benefit of this command compared to xbstrap install --update?

@no92 no92 force-pushed the updating branch 2 times, most recently from 7c7316f to a20a3ca Compare June 2, 2024 13:09
@no92
Copy link
Member Author

no92 commented Jun 2, 2024

Rebased the PR on master. As discussed on Discord, the typical use-case is updating some or all installed packages to avoid partial upgrades, as it happens with individual package updates by means of xbstrap install -u or a git pull.

The interface looks like this:

$ xbstrap update --help
usage: xbstrap update [-h] [-n] [-c] [-u] [-p] [--recursive] [--paranoid] [--reset] [--hard-reset] [--only-wanted] [--keep-going]
                      [--progress-file PROGRESS_FILE] [--all] [--deps-of DEPS_OF] [-i] [-v]
                      [packages ...]

Update packages to their newest version. When --all is used, --installed is implied.

positional arguments:
  packages

options:
  -h, --help            show this help message and exit
  -n, --dry-run         compute a plan but do not execute it
  -c, --check           skip packages that are already built/installed/etc.
  -u, --update          check for package updates
  -p, --pull            pull packages instead of building from source
  --recursive           when updating: also update requirements
  --paranoid            also consider unlikely updates (e.g., changes of git tags)
  --reset               reset repository state; risks loss of local commits!
  --hard-reset          clean and reset repository state; risks loss of local changes and commits!
  --only-wanted         fail steps that are not explicitly wanted
  --keep-going          continue running even if some build steps fail
  --progress-file PROGRESS_FILE
                        file that receives machine-ready progress notifications
  --all
  --deps-of DEPS_OF
  -i, --installed       only select packages that are already installed
  -v, --verbose         print every version check performed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants