Commit graph

12 commits

Author SHA1 Message Date
Stefan E
bb89239a23
Fix syntax errors and README.md file paths (#2)
* fix syntax errors

* update README.md to use the correct file name

---------

Co-authored-by: sedot42 <git@fry.fastmail.com>
2025-04-24 04:24:11 -05:00
08410b71c0
Update pkgrecover.sh 2024-09-23 00:09:30 -05:00
mrhoomanwastaken
0eec8cceb0
Fix issues involving sudo and root. (#1)
* Fix issues involving sudo and root.

Removed the usage of sudo in the script because it stops pacman from running.
The script will now warn you if you are not root, but it will not stop the script from running to allow usage of dry-run without root privileges.

* Update pkgrecover.sh

Will now check to make sure the important directories are mounted.

* Update pkgrecover.sh

Will now stop people from trying to install packages without root privileges.

* Update pkgrecover.sh

---------

Co-authored-by: Eduard Tolosa <tolosaeduard@gmail.com>
2024-09-23 00:06:17 -05:00
63c14b2811 Add more informative message in case that paclog is not found.
Add version.
2024-06-09 14:09:55 -05:00
bc17ff70ec Add option to use auto-configure pacman-static in case that pacman is broken using the USE_PACMAN_STATIC=true environment variable 2024-06-09 14:00:57 -05:00
c4e8f8c233 Use --overwrite=* by default and remove --noconfirm 2024-06-09 13:15:08 -05:00
ab8e455e6b Add the --no-db flag to the --paclog option to allow the user to no use the pacman db in case it's corrupted. 2024-05-27 17:42:44 -05:00
fea9035a11 Final fixes 2024-05-27 17:10:37 -05:00
ad7f1f70a9 Better help message. 2024-05-27 16:57:03 -05:00
ab8c93b36f Better variable naming. 2024-05-27 16:51:30 -05:00
8914f16cc5 Only match if package- matches db_dir
There are some packages which have very short names, like `go`. Without this, every `go*` package will match, now only packages with `go-*` will match. It's needed because the output of the pacman db dir contains `$pkgname-$pkgver`
2024-05-27 16:49:28 -05:00
b14d674355 Initial commit. 2024-05-27 16:27:06 -05:00