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

xbps-install add -T option to skip disk space check #371

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

Conversation

CorporalCrawdad
Copy link

Add an option to trust that there is enough disk space to continue transaction. This is a workaround for #29.

@Duncaen
Copy link
Member

Duncaen commented Jan 28, 2021

Not a fan of adding random flags for this, especially for something that should be fixed in a better way.
I think a checking if a environment variable would be better.

if (!xbps_dictionary_set_uint64(xhp->transd,
"disk-free-size", rootdir_free_size))
return EINVAL;
if (xhp->flags & XBPS_FLAG_IGNORE_DISK_SPACE) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this using the wrong logic?

@@ -107,6 +108,7 @@ main(int argc, char **argv)
{ "help", no_argument, NULL, 'h' },
{ "ignore-conf-repos", no_argument, NULL, 'i' },
{ "ignore-file-conflicts", no_argument, NULL, 'I' },
{ "trust-disk-space", no_argument, NULL, 'T' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trust doesn't feel like the correct word; also, if it's going to be a command line arg I think it should exclusively be a long opt; but Duncaen has expressed preference for an env var.

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.

3 participants