You are not logged in.
It is amazing the speed with which updates perl-xyne-arch. That means a lot to me
thanks for this tool
Offline
1. "powerpill -Syuw" does nothing
2. How do I know if aria2c is being used? I grep'd for aria on 'ps aux'; nothing was found. Also, the progress bar looks like pacman's. I do not see aria2c's output.
Offline
@qubit
@Xiong Chiamiov
At the moment powerpill is pacman-independent for the download. I've written a partial implementation of pacman in Perl (Xyne::Arch::Pacman.pm) to gain more freedom and to pave the way for some other ideas that I have.
Huh, it's evidently been a while since I read how you implemented this. Doesn't it have to get the list of packages from pacman, though, in order to know what to download? That's what I was intending, whether that is any more correct or not.
1. "powerpill -Syuw" does nothing
No output whatsoever, or does it hang at a certain spot?
2. How do I know if aria2c is being used? I grep'd for aria on 'ps aux'; nothing was found. Also, the progress bar looks like pacman's. I do not see aria2c's output.
The download bar should list a bunch of connections, like in the screen.
Xyne:
Quick question, I noticed that my powerpill configuration file is no longer being parsed when I run it through yaourt (which *is* running powerpill correctly), although it does parse it when I run powerpill directly. Running 'sudo powerpill' works as expected, so I'm not really sure what yaourt's doing. Is there any information you can give me that would help when I dig through their code and/or ask them about it?
Last edited by Xiong Chiamiov (2009-04-20 23:17:27)
Offline
@keerthi
1) With "-Syuw", if there's nothing to download, then there's nothing to do (-w == --downloadonly).
2) While you're downloading, you will see messages from aria2c if you're not using the Aria2Silent/--aria2-silent option. Even if you do use that option, you will see a progress summary in the terminal.
@Xiong Chiamiov
Yes and no. When I refactored it, I partially wrote my own pacman to get around what I consider limitations of regular pacman. Using that I can parse sync requests to determine what should be downloaded (dependencies, upgrades, etc). I've filed a feature request that would simplify the situation for anyone who wants to use pacman inside of scripts... hopefully that will get implemented but apparently pacman's codebase is messy so I'm not holding my breath for it.
For the configuration file issue, I've just changed something in the configuration file selection code which might have been causing that. If it still behaves strangely in the latest version (perl-xyne-arch>=0.37), you can open up /usr/share/perl5/vendor_perl/Xyne/Arch/PowerpillConf.pm and add the following debugging lines near the end of the "new" sub after line 97:
print "powerpill run as user $ENV{USER}\n";
print "config file path: $self->{PATH}\n";
That should show you which user powerpill is being run as and what configuration file path it's using.
Last edited by Xyne (2009-04-21 05:17:21)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Now that powerpill checks dependency by himself he has problems with the "PROVIDES" array, it doesn't check it and tries to download the package. For example it tries to download qt when I already have qtmod.
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
Sorry about that. I had forgotten to check the PROVIDES array of local packages (even though it checked provides arrays in the sync db).
This should work with the latest version of perl-xyne-arch (>=0.39). Could you please confirm that the issue is resolved?
@everyone
I made a few changes to homogenize method names so I may have introduced a few bugs (although I hope not).
I'd also like to know if anyone notices a real difference between the time it takes to resolve the download list with the new version (which parses the db itself) vs the old version (which relied on pacman).
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Confirmed! issue resolved, thanks
mmm edit:
I have "Argument "4.5.0" isn't numeric in numeric eq (==) at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 803."
I only have lib32-qt and qtmod with the 4.5.0 version, I guess the perl script has the wrong variable type declared, but I can still go on with the download
when -Syu today
the packages that have to be update are
==> Mise à jour des paquetages seulement (nouvelle release):
extra/libgpod version 0.7.0 release 1 -> 2
extra/libxklavier version 3.9 release 1 -> 2
extra/xbitmaps version 1.0.1 release 1 -> 2
extra/xcursor-themes version 1.0.1 release 1 -> 2
extra/xf86miscproto version 0.9.2 release 1 -> 2
extra/xf86vidmodeproto version 2.2.2 release 1 -> 2
extra/xineramaproto version 1.1.2 release 1 -> 2
==> Mise à jour des logiciels (nouvelle version):
extra/dri2proto 1.99.3-1 -> 2.0-1
extra/hal-info 0.20090330-1 -> 0.20090414-1
extra/nspr 4.7.3-1 -> 4.7.4-1
extra/poppler 0.10.5-1 -> 0.10.6-1
extra/poppler-qt 0.10.5-1 -> 0.10.6-1
extra/sg3_utils 1.26-1 -> 1.27-1
Last edited by ChoK (2009-04-22 20:10:58)
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
I guess the perl script has the wrong variable type declared
Perl doesn't have variable types.
(well, not int/float/char... it does distinguish between scalars, arrays, etc)
Anyway, that should be fixed now too (perl-xyne-any>=0.41).
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Tryed this:
powerpill -Sw --cachedir /tmp/yaobak/ gnome
Then I got this:
aria2: Exception: Got EOF from the server.
aria2: 2009-04-23 08:42:20.816123 NOTICE - Verification finished successfully. file=/tmp/yaobak/libtheora-1.0-1-i686.pkg.tar.gz
aria2: 2009-04-23 08:42:20.827606 NOTICE - Download complete: /tmp/yaobak/libtheora-1.0-1-i686.pkg.tar.gz
aria2: 2009-04-23 08:42:21.088761 NOTICE - Verification finished successfully. file=/tmp/yaobak/glib2-2.20.1-1-i686.pkg.tar.gz
aria2: 2009-04-23 08:42:21.089643 NOTICE - Download complete: /tmp/yaobak/glib2-2.20.1-1-i686.pkg.tar.gz
aria2: Download Results:iles, 46.87 MiB of 85.07 MiB (55%), 281.84 kiB/s, ETA: 2:18
aria2: gid|stat|avg speed |path/URIMiB of 85.07 MiB (55%), 281.84 kiB/s, ETA: 2:18
aria2: ===+====+===========+==========================================================
aria2: 24| OK| n/a|/tmp/yaobak/gnome-panel-2.26.1-1-i686.pkg.tar.gzA: 2:18
aria2: 25| OK| n/a|/tmp/yaobak/sound-theme-freedesktop-0.2-1-i686.pkg.tar.gz
aria2: 28| OK| n/a|/tmp/yaobak/gnome-screensaver-2.26.1-1-i686.pkg.tar.gz8
aria2: 29| OK| n/a|/tmp/yaobak/libiec61883-1.1.0-1.pkg.tar.gz/s, ETA: 2:18
aria2: 36| OK| n/a|/tmp/yaobak/gnome2-user-docs-2.26.1-1-i686.pkg.tar.gz18
aria2: 46| OK| n/a|/tmp/yaobak/libnotify-0.4.5-1-i686.pkg.tar.gz ETA: 2:18
aria2: 47| OK| n/a|/tmp/yaobak/gstreamer0.10-base-plugins-0.10.22-1-i686.pkg.tar.gz
aria2: 48| OK| n/a|/tmp/yaobak/libsm-1.1.0-1-i686.pkg.tar.gzB/s, ETA: 2:18
aria2: 49| OK| n/a|/tmp/yaobak/libxtst-1.0.3-2-i686.pkg.tar.gzs, ETA: 2:18
aria2: 50| OK| n/a|/tmp/yaobak/libxss-1.1.3-1-i686.pkg.tar.gz/s, ETA: 2:18
aria2: 55| OK| n/a|/tmp/yaobak/gnome-themes-2.26.1-1-i686.pkg.tar.gz: 2:18
aria2: 56| OK| n/a|/tmp/yaobak/gnome-applets-2.26.1-1-i686.pkg.tar.gz 2:18
aria2: 57| OK| n/a|/tmp/yaobak/xf86vidmodeproto-2.2.2-2-i686.pkg.tar.gz:18
aria2: 23| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-mount-0.8-1-i686.pkg.tar.gz
aria2: 9| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-session-2.26.1-1-i686.pkg.tar.gz
aria2: 16| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxxf86misc-1.0.1-2-i686.pkg.tar.gz
aria2: 21| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libvisual-0.4.0-2-i686.pkg.tar.gz
aria2: 5| OK| 560.7KiB/s|/tmp/yaobak/gnome-mime-data-2.18.0-3.pkg.tar.gzTA: 2:18
aria2: 43| OK| 1.1MiB/s|/tmp/yaobak/metacity-2.26.0-1-i686.pkg.tar.gz ETA: 2:18
aria2: 7| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/yelp-2.26.0-1-i686.pkg.tar.gz
aria2: 4| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-backgrounds-2.24.1-1-i686.pkg.tar.gz
aria2: 8| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/cpufrequtils-005-2-i686.pkg.tar.gz
aria2: 13| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/hicolor-icon-theme-0.10-2-i686.pkg.tar.gz
aria2: 14| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/recordproto-1.13.2-2-i686.pkg.tar.gz
aria2: 17| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libraw1394-1.3.0-2-i686.pkg.tar.gz
aria2: 18| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/xproto-7.0.15-1-i686.pkg.tar.gz
aria2: 19| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxext-1.0.5-2-i686.pkg.tar.gz
aria2: 52| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxdamage-1.1.1-2-i686.pkg.tar.gz
aria2: 20| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-icon-theme-2.26.0-1-i686.pkg.tar.gz
aria2: 3| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libvorbis-1.2.1rc1-2-i686.pkg.tar.gz
aria2: 6| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/nautilus-2.26.2-1-i686.pkg.tar.gz
aria2: 1| OK| 14.6KiB/s|/tmp/yaobak/libshout-2.2.2-2.pkg.tar.gzkiB/s, ETA: 2:18
aria2: 2| OK| 14.1KiB/s|/tmp/yaobak/libv4l-0.5.9-1-i686.pkg.tar.gz/s, ETA: 2:18
aria2: 10| OK| 13.8KiB/s|/tmp/yaobak/libcanberra-0.11-2-i686.pkg.tar.gzETA: 2:18
aria2: 32| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libogg-1.1.3-2-i686.pkg.tar.gz
aria2: 34| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/notification-daemon-0.4.0-2-i686.pkg.tar.gz
aria2: 44| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gstreamer0.10-base-0.10.22-1-i686.pkg.tar.gz
aria2: 45| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/videoproto-2.2.2-2-i686.pkg.tar.gz
aria2: 51| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-media-2.26.0-1-i686.pkg.tar.gz
aria2: 35| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libice-1.0.5-1-i686.pkg.tar.gz
aria2: 22| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/shared-mime-info-0.60-1-i686.pkg.tar.gz
aria2: 26| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxv-1.0.4-1-i686.pkg.tar.gz
aria2: 38| OK| 57.6KiB/s|/tmp/yaobak/gstreamer0.10-good-plugins-0.10.14-1-i686.pkg.tar.gz
aria2: 11| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/scrnsaverproto-1.1.0-2-i686.pkg.tar.gz
aria2: 12| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/speex-1.2rc1-1-i686.pkg.tar.gz
aria2: 42| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/epiphany-2.26.1-1-i686.pkg.tar.gz
aria2: 33| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-settings-daemon-2.26.1-1-i686.pkg.tar.gz
aria2: 39| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-desktop-2.26.1-1-i686.pkg.tar.gz
aria2: 30| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libgl-7.4-1-i686.pkg.tar.gz
aria2: 31| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/xf86miscproto-0.9.2-2-i686.pkg.tar.gz
aria2: 41| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libgail-gnome-1.20.1-1-i686.pkg.tar.gz
aria2: 40| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/desktop-file-utils-0.15-1-i686.pkg.tar.gz
aria2: 27| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxslt-1.1.24-2-i686.pkg.tar.gz
aria2: 53| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/libxxf86vm-1.0.2-1-i686.pkg.tar.gz
aria2: 54| ERR| n/a|ftp://ftp.belnet.be/mirror/archlinux.org/extra/os/i686/gnome-control-center-2.26.0-1-i686.pkg.tar.gz
aria2: 15| OK| 53.9KiB/s|/tmp/yaobak/libtheora-1.0-1-i686.pkg.tar.gzs, ETA: 2:18
aria2: 37| OK| 252.2KiB/s|/tmp/yaobak/glib2-2.20.1-1-i686.pkg.tar.gz/s, ETA: 2:18
aria2: Status Legend:7 files, 46.87 MiB of 85.07 MiB (55%), 281.84 kiB/s, ETA: 2:18
aria2: (OK):download completed.(ERR):error occurred.(55%), 281.84 kiB/s, ETA: 2:18
aria2: aria2 will resume download if the transfer is restarted..84 kiB/s, ETA: 2:18
aria2: If there are any errors, then see the log file. See '-l' option in help/man page for details.
Not sure if aria2 is abit aggressiv, and the packages get damaged.
Birger
Offline
The problem seems to be the mirror that you're using (ftp://ftp.belnet.be). It might also be because you're only using a single mirror, which is really not recommended. Try adding the following line to /etc/powerpill.conf:
Reflect = -l 45
Also make sure that you're not syncing the database off of the main server.
I just tried the command and all downloads finished successfully.
If the problem persists after adding more mirrors, post your /etc/pacman.conf, /etc/powerpill.conf, /etc/pacman.d/mirrorlist (and any others) and the output of "powerpill -Sw --cachedir /tmp/yaobak/ gnome --get-metalink".
Last edited by Xyne (2009-04-23 08:44:22)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
It seems that uncommenting the NoColor option in powerpill.conf does not suppress all colored output.
Offline
Can you be specific? Which lines are still colorized?
Last edited by Xyne (2009-04-23 14:35:37)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I've just tried both "powerpill --no-color ..." and "NoColor" in the config file. Both work for me and suppress all colors. Please double-check your configuration file ("NoColor" is case-sensitive and must be in the [options] section) and make sure that powerpill is parsing the right file. ~/.config/powerpill/powerpill.conf will be parsed instead of /etc/powerpill.conf if it exists.
*makes a mental note to write a man page for powerpill.conf*
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
That's it, I had both /etc/powerpill.conf and .config/powerpill/powerpill.conf, and I was editing /etc/powerpill.conf
My mistake, but yeah, you should write that man page
Anyway, thanks
Offline
Hi, today after ejecute pacman -Syu, I see a stranger warning:
Argument "rc2" isn't numeric in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 1121.
Maybe this information will be useful:
:: Sincronizando las bases de datos de paquetes...
kdemod-core está actualizado
kdemod-extragear está actualizado
kdemod-playground está actualizado
core 33,0K 38,9K/s 00:00:01 [####################################################################################################] 100%
extra 377,1K 101,8K/s 00:00:04 [####################################################################################################] 100%
community 366,9K 82,2K/s 00:00:04 [####################################################################################################] 100%
archlinuxfr está actualizado
xyne-any 3,3K 17,6K/s 00:00:00 [####################################################################################################] 100%
Verificando si hay actualizaciones de paquetes...
==> Package upgrade only (new release):
extra/xorg-fonts-100dpi version 1.0.1 release 1 -> 2
==> Software upgrade (new version) :
xyne-any/perl-xyne-arch 0.41-1 -> 0.44-1
xyne-any/reflector 4.1-1 -> 4.2-1
==> Continue installing ? [Y/n]
==> [V]iew package detail [M]anualy select packages
==> ----------------------------------------------
==>y
Argument "rc2" isn't numeric in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 1121.
Argument "rc2" isn't numeric in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 1121.
:: The following packages will be downloaded:
[extra]
xorg-fonts-100dpi [12.16 MiB]
[xyne-any]
perl-xyne-arch [0.04 MiB] reflector [0.00 MiB]
:: Number of Packages: 3
:: Total Download Size: 12.20 MiB
:: Total Installed Size: 17.01 MiB
:: Proceed with download? [Y/n] y
Offline
@takedown
I've investigate the problem and it's due to the kdemod packages. One of them uses a non-numeric package release ("rc2").
*edit*
The pkgrel should be an number. Contact the packager and let him know that there's a mistake in the package.
Last edited by Xyne (2009-04-23 19:44:38)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
But which of the packages?
xorg-fonts-100dpi
perl-xyne-arch (you )
reflector (you )
I haven't got packages from kdemod to upgrade
Offline
It's one of the kdemod packages. It doesn't matter if there's a new one. If it's installed, the version is compared against the sync database to see if there's a newer version when you do a sysupgrade. Run this command to check which one has the "rc2" package release:
pacman -Ss | grep -- -rc2
The problem seems to be kdemod-playground/kdemod-playground-filelight 1.9-rc2.
perl-xyne-arch (you )
reflector (you )
I think I would have noticed if my own packages caused the problem.
Last edited by Xyne (2009-04-23 21:37:28)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
yes, the package is filelight:
not only creates problems, also does not work
Offline
yes, the package is filelight:
not only creates problems, also does not work
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
The problem seems to be the mirror that you're using (ftp://ftp.belnet.be). It might also be because you're only using a single mirror, which is really not recommended. Try adding the following line to /etc/powerpill.conf:
Reflect = -l 45
Also make sure that you're not syncing the database off of the main server.
I just tried the command and all downloads finished successfully.
If the problem persists after adding more mirrors, post your /etc/pacman.conf, /etc/powerpill.conf, /etc/pacman.d/mirrorlist (and any others) and the output of "powerpill -Sw --cachedir /tmp/yaobak/ gnome --get-metalink".
Added two more mirrors, and the problem went away. But I have written in your reflector thread.
Birger
Offline
I'm glad that the problem went away but why are you using so few mirrors?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I get this error when running powerpill -Su:
--> Retrieving mirrorlist with reflector...
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
Use of uninitialized value in numeric comparison (<=>) at /usr/share/perl5/vendor_perl/Xyne/Arch/Reflector.pm line 163, <STDIN> line 1.
It seems to work though?
Offline
What options are you passing to reflector in powerpill.conf?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline