wesbarnett / snap-pac

Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST
GNU General Public License v2.0
183 stars 14 forks source link

Allow to occasionally skip snap-pac run #18

Closed maximbaz closed 6 years ago

maximbaz commented 6 years ago

Most of the times I want snap-pac to make a snapshot, but sometimes I want to test a package or something like that, and I don't want to create snapshots.

My most recent personal example is that I was comparing the performance of python-tensorflow and python-tensorflow-cuda, reinstalling them back and forth, and then I realized that my snapshots are bloated with unnecessary entries.

This PR adds an ability to use $ SNAP_PAC_SKIP=true sudo pacman -S ....

The current code is more of a prototype, please suggest how you'd like to name the option, what to print to stdout and any other ideas - or feel free to take over the PR if that's simpler for you.

wesbarnett commented 6 years ago

Nice idea. Thanks for the contributions.