-
Notifications
You must be signed in to change notification settings - Fork 24
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
Package DB printing, include-path searches, downgrade configuration files and debugging #133
Comments
Thanks for summarizing this.
|
Awesome, am on board. In that case, I will close this issue later on and make separate issues for each task. Just one quick point:
I believe we already support looking in custom directories with the downgrade --pacman-cache "/var/cache/pacman /my/thing/somewhere" foo Edit: Only disadvantage with this as of now is that tilde expansions are not supported inside double quotes, which some might find inconvenient. We can probably parse the input string into a bash array and then expand all the inputs paths before feeding them to |
I think the solution is to accept multiple
That sounds like a bad idea 😄 |
As issue #119 has gotten very long, I am just copying over the relevant discussion points that we could use to improve
downgrade
further.Modify
local
andremote
to something more specific likelocal (core)
,local (community)
etc. Could be problematic when dealing with AUR packages, which require a wrapper to verify if they are indeed AUR packages.Comment from @pbrisbin:
SGTM as well to just include the package database along with the package, such as
local (core)
,local (aur)
,local (community)
etc. I agree about not including the cache paths, it would get too long and cumbersome.Look into include's in
/etc/pacman.conf
and how we pick up other cache directories.Comment from @pbrisbin:
Agree, this does seem too complex, and IMO the benefits might not justify the costs/effort
Consider making a downgrade-specific configuration file to set defaults.
Comment from @pbrisbin:
a. I have two perspectives on this. Firstly: yes, the idea of setting environmental variables sounds nice. If we go with this idea, it would be nice if we could include instructions on customizing environmental variables for modifying default behaviours -> perhaps we could include this in the readme or better so, in a GitHub wiki page. PS: I think it will be good to eventually have a wiki page in this repo since we will eventually have diverse functionality in
downgrade
given version filtering and other cool features.b. Alternatively, we could instead get rid of reading environmental variables (from outside downgrade) and only have them as proxies inside
downgrade
. By doing this, the only way to modify behaviour would be with CLI options, which just makes things IMO tighter and more controlled. A natural extension of this behaviour would be to create configuration files, eg.~/.config/downgrade/downgrade.conf
, which would allow the user to set some default behaviours; which would in turn be the sole action that changes environmental variables.Personally, I really like (b) because it conforms to the general workflows of many other successful tools out there, and would make
downgrade
overall more intuitive to customize (based on experiences from others tools).Maybe we add a
--debug
command-line option todowngrade
which would be much more verbose with variable and array-printing. We could request users to run problematic commands with--debug
to identify locations of bugs.We found a non-intrusive way to solve this by running
bash -x downgrade
. Perhaps this instruction could be added to an issue template regarding bugs indowngrade
.WDYT about these points? If we have an agreement, I would be happy to start working on these first because they seem generally easier than #83 and #118, and also somehow a bit more fundamental to the workflow of
downgrade
.The text was updated successfully, but these errors were encountered: