Skip to content

Instantly share code, notes, and snippets.

@piglovesyou
Created August 28, 2014 10:59
Show Gist options
  • Save piglovesyou/50b8dbf82b31a5d2402f to your computer and use it in GitHub Desktop.
Save piglovesyou/50b8dbf82b31a5d2402f to your computer and use it in GitHub Desktop.
downgrade all packages to the last state
diff --git a/downgrade_orig b/downgrade_orig
index 119221f..4577388 100644
--- a/downgrade_orig
+++ b/downgrade_orig
@@ -15,9 +15,11 @@ prompt_to_install() {
output_package "$((i++))" "$entry"
done
- printf "\n"
- gettext 'select a package by number: '; read -r ans
- printf "\n"
+ # printf "\n"
+ # gettext 'select a package by number: '; read -r ans
+ # printf "\n"
+
+ ans=2
((ans > 0 && ans <= $#)) && install_pkg "${!ans}"
}
@@ -37,9 +39,9 @@ prompt_to_ignore() {
}
search_packages() {
- ((NOARM)) || \
- curl --fail --silent --data "arch=$ARCH" \
- --data-urlencode "pkgname=$1" "$ARM_URL/exact" | cut -d '|' -f 5
+ # ((NOARM)) || \
+ # curl --fail --silent --data "arch=$ARCH" \
+ # --data-urlencode "pkgname=$1" "$ARM_URL/exact" | cut -d '|' -f 5
((NOCACHE)) || \
find $( sed '/^#\?CacheDir *= *\(.*\)$/!d;s//\1/' "$PACMAN_CONF" ) \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment