actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
876 stars 89 forks source link

Downgrade #246

Open actionless opened 6 years ago

actionless commented 6 years ago

for AUR: choose commit to which downgrade in interactive prompt (and next build just as normal -S/-P, with all the flags handled as --rebuild and so)

and for repo pkgs use downgrade util (or query archive directly for better batch processing) and if --rebuild was passed -- downgrade using ABS (pikaur -G , choose commit from the list, pikaur -P )

lilole commented 5 years ago

Thanks for pikaur. It's the best AUR package manager ever.

+1 on this one -- the AUR package Liquibase 3.7.0 worked fine but the new 3.8.0 is totally broken for me. I had to downgrade by hand. (Took me all day to realize it's just a stupid bug in their new Java.)

Bundy01 commented 4 years ago

I use a home-made zsh script to downgrade faulty packets. I don't know if it can be integrated into Pikaur with some modifications., but I post it just in case.


#!/bin/zsh

HISTFILE=~/.histfile
VAR=`tail -n 1 ${HISTFILE}|tr -d "[0-9][:; ]"`
INSTALL=`echo -e "\033[3;32;1mEnter the name of the archive to be installed:\033[0;1;37m "`

if [ "$VAR" == "U" ]
      then
        cd /var/cache/pacman/pkg/; echo
          echo -e "\033[0;33;4m<TAB> for self-completion.\033[0m"

    read -e -p "$INSTALL" u
  pikaur -U $u

      else
        cd ~/.cache/pikaur/pkg/; echo
          echo -e "\033[0;33;4m<TAB> for self-completion.\033[0m"

    read -e -p "$INSTALL" ua
  pikaur -U $ua

fi
actionless commented 4 years ago

@Bundy01 pikaur already have downgrade code for both repo and aur packages used in its tests (https://github.com/actionless/pikaur/blob/master/pikaur_test/helpers.py#L291-L342) however i'm too lazy to write CLI for it

Bundy01 commented 4 years ago

Okay, that's good to know. I didn't know that. Sorry for the unnecessary post.

actionless commented 4 years ago

no problem, if you'd like to contribute on implementing the CLI for downgrade i can help with starting points

Bundy01 commented 4 years ago

It would have been a pleasure, but unfortunately I only have bash and css notions :/

aemonge commented 2 years ago

Can we add pikaur -G , choose commit from the list, pikaur -P to the documentation of help for explanation of dowgrading packages?

actionless commented 2 years ago

@aemonge yes, feel free to add new entry to the FAQ of the README 👍

aemonge commented 2 years ago

https://github.com/actionless/pikaur/pull/643

d =^.^= b