From 2aca92f351b6259d393959c9f5e9f75299e679f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Fuhry?= <rene.fuhry@gmail.com>
Date: Sat, 28 Jan 2023 01:54:33 +0100
Subject: [PATCH] removed pacutils dependency

the script now uses pacman's build in flag to output all pkg's (even looks the same)
---
 README.md | 2 +-
 makefile  | 2 +-
 update    | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 8275367..33ee849 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Update script written in bash for Arch. Keeps all your pacman and aur packages a
 Needed dependencies
 
 ```bash
-  pacman -S zip pacutils
+  pacman -S zip
 ```
 ## Installation 
 
diff --git a/makefile b/makefile
index aef8943..c2ffd5c 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-VER = "v1.1"
+VER = "v1.2"
 
 install:
 	@echo "==> Installing update $(VER)..."
diff --git a/update b/update
index 38a2121..3519d0a 100644
--- a/update
+++ b/update
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # updates via an aur-helper and flatpak with flags
-# version 1.1
+# version 1.2
 
 IGreen="\033[0;92m"		# Green
 NC="\033[0m"			# Text Reset
@@ -26,7 +26,7 @@ Help() {
 # creates package lists, moves them into a zip, adds some other files to the zip and backups the pacman database in the form of a tar
 # it then rsyncs the zip and the tar to the backup location
 before_backup() {
-	paclog-pkglist > pacman-pre.txt
+	pacman -Q > pacman-pre.txt
     flatpak list > flatpak-pre.txt
     zip --quiet --move before-backup.zip.new pacman-pre.txt flatpak-pre.txt
     zip --quiet --grow before-backup.zip.new /etc/fstab /etc/makepkg.conf
@@ -46,7 +46,7 @@ after_backup() {
 # updates using aur-helper
 update_with_aur_helper() {
 	"${aur_helper}"
-    paclog-pkglist > pacman-after.txt
+    pacman -Q > pacman-after.txt
 }
 
 # updates using flatpak update