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

Adjust write tests for DISTDIR and PORTAGE_TMPDIR to work with automount directories #1051

Merged
merged 3 commits into from Jun 14, 2023

Commits on Jun 14, 2023

  1. doebuild: do not rely on os.access() for PORTAGE_TMPDIR write check

    Calling os.access() on ${PORTAGE_TMPDIR}/portage will not trigger any
    automount that the user may have configured there.
    
    Instead, just try to create a file and catch PermissionError.
    
    Bug: https://bugs.gentoo.org/890812
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    floppym committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    37b108a View commit details
    Browse the repository at this point in the history
  2. fetch: do not rely on os.stat() for DISTDIR write test

    If DISTDIR is an automount, os.stat() will not trigger it.
    Just try to create a file instead.
    
    Bug: https://bugs.gentoo.org/485100
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    floppym committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    f5ae3c4 View commit details
    Browse the repository at this point in the history
  3. Update NEWS for write check adjustments

    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    floppym committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    62906c2 View commit details
    Browse the repository at this point in the history