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

Check user excludes sanity #22

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Check user excludes sanity #22

wants to merge 5 commits into from

Conversation

drwulsen
Copy link
Contributor

The user excludes list generated by adding -e /foo/ to the parameters can have typos made by the user.
This commit will display a warning on what was not found (even in quiet mode) and ask the user to confirm this is intended.

Walter Hüttenmeyer added 5 commits August 4, 2019 12:38
added /var/db/repos/gentoo and /var/cache/distfiles to hard-coded list of excludes.
Portage has moved (when?) according to https://wiki.gentoo.org/wiki//usr/portage
Added portageq logic to detect where portage stores its tree and distfiles.
If this fails, fall back to a default list declared in EXCLUDES_DEFAULT_PORTAGE
add new portage paths with optional portageq logic (#18)
user-excludes are checked for their existance and in case they do not exist (typo) a warning message is displayed.
@TheChymera
Copy link
Owner

TheChymera commented Oct 27, 2019

@drwulsen Could you please rebase this into one commit?

@@ -65,7 +66,12 @@ while getopts ':t:e:skqcblph' flag; do
EXCLUDE_LOST=1
;;
e)
USER_EXCL+=" --exclude=${OPTARG}"
if [ -e ${OPTARG} ]
Copy link
Contributor

Choose a reason for hiding this comment

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

OPTARG is likely to contain * since --exclude accepts such values in order to glob.

Also the arg to --exclude is relative to TARGET. This will be an issue when TARGET isn't / nor $(pwd).

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