Package Details: tkpacman 1.6.1-1

Git Clone URL: https://aur.archlinux.org/tkpacman.git (read-only)
Package Base: tkpacman
Description: A lightweight GUI for pacman built with Tcl/Tk
Upstream URL: http://sourceforge.net/projects/tkpacman
Keywords: GUI pacman system
Licenses: GPL
Submitter: herremaw
Maintainer: herremaw
Last Packager: herremaw
Votes: 22
Popularity: 0.930035
First Submitted: 2013-08-25 14:25
Last Updated: 2015-10-13 08:01

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

herremaw commented on 2015-10-13 08:12

Upgraded to version 1.6.1
Changes:
- The button "Check Upgrades" was renamed to "List Upgrades".
- tkPacman no longer calls the pacman script "checkupdates" but
provides the same functionality by setting up a temporary copy of the
package database at /tmp/tkpacman, where /tmp/tkpacman/local is a
symbolic link to /var/lib/pacman/local, and by calling:
fakeroot -- pacman --sync --refresh --dbpath /tmp/tkpacman
pacman --query --upgrades --dbpath /tmp/tkpacman
This gives the user more feedback on the progress than 'checkupdates'
which hides all feedback on the progress from pacman.
- The parsing of /etc/pacman.conf was completely rewritten. Up to now
it is used by tkPacman to get the list of sofware repositories and
the value of DBPath (default /var/lib/pacman).

Alad commented on 2015-09-28 09:25

No problem, thanks for the update. :)

herremaw commented on 2015-09-27 11:43

tkpacman was updated to version 1.6.0.

I would like to thank Alad Wenter for helping me to improve tkpacman.

Alad commented on 2015-09-23 01:04

As an aside, you should quote $pkgdir as it can contain spaces. Some of the install commands could also be simplified (install takes multiple arguments, and can create directories in one step via -D).

Alad commented on 2015-09-23 00:52

I've opened a ticket:

https://bugs.archlinux.org/task/46405

herremaw commented on 2015-09-22 17:12

@Alad 2015-09-21 Continuation.

Digging into the "checkupdates" problem a bit further, I have found that "checkupdates" works when LANG=en_US.UTF-8 and for many other languages as well, but not when LANG=nl_NL.UTF-8.

Digging still further, shows that the line

fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null

is the cause of the problem. If LANG=nl_NL.UTF-8,

fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB"

returns:

getopt: ongeldige optie -- 'S'
getopt: ongeldige optie -- 'y'
getopt: onbekende optie '--dbpath'
fakeroot, create a fake root environment.
usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
[-i file] [-s file] [-u|--unknown-is-real]
[-b|--fd-base fd] [-h|--help] [-v|--version]
[--] [command]

It could be considered as a bug in "fakeroot" which becomes visible if LANG=nl_NL.UTF-8, but simply adding "--" to the fakeroot line in checkupdates avoids this problem. So,

fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB"

works even if LANG=nl_NL.UTF-8.

herremaw commented on 2015-09-22 15:12

@Alad 2015-09-21
I am beginning to understand your comments.

I am thinking of replacing the "Resync Database" button with a button that would call "checkupdates" and display the result.

However, at the moment "checkupdates" does not seem to work on my system, neither when run as root, nor when run as normal user.

I will need some more time to understand why "checkupdates" does not seem to work.

Alad commented on 2015-09-21 23:39

Well, if you want to check for new versions, you can get the same effect by using fakeroot with a symlinked db, without leaving the system in an undefined state.

If you just want a "Resync" because you can do an -Sy with pacman, the drawbacks should at least be made clear.

herremaw commented on 2015-09-20 08:22

@Alad 2015-09-20

I don't quite understand your comment.

tkPacman does not run "pacman -Sy" for refreshing the package list. It runs "pacman --sync --search" for refreshing the list of available packages and "pacman --query --search" for refreshing the list of installed packages.

"pacman --sync --refresh" is only run when the user presses the "Resync Database" button.

Do you mean that I should remove the "Resync Database" button to protect the user against "partial updates"?

Alad commented on 2015-09-20 07:30

Please use a temporary directory to refresh the package list (similar to pacman's checkupdates) instead of running pacman -Sy.

https://wiki.archlinux.org/index.php/Pacman#Partial_upgrades_are_unsupported
http://gist.io/5660494

All comments