soul_rebel
ist immer auf der flucht
portupgrade macht bei mir komische sachen:
wenn ich portupgrade aus einem programm heraus aufrufe, dann fehlt ein teil des output.
wenn ich also einen aufruf wie
direkt auf der kommandozeile aufrufe und keine root rechte habe(nur als beispiel, ist schneller vorbei) sieht der output so aus:
aber wenn ich denselben befehl aus meinem programm heraus starte (egal ob mit pipe, QProcess oder KProcess) fehlt aller rotmarkierter code.
außerdem gibt es eine andere fehlermeldung undzwa:
ich bin relativ ratlos
ich kann auschließen, dass es sich um ein problem von popen Kprocess oder einer anderen system schnittstelle handelt, wenn ich nämlich ein | tee logfile and den befehl selbst hänge (sowohl im aufruf des programms als auch auf der kommandozeile) erzeugen beide unterschiedliche logfiles.
auch liegt es nicht an fetch-befehl der an den jeweiligen stellen benutzt wird, ich habe es schon mit curl und mit fetch ausprobiert, gleiches ergebnis.
vielen dank für eure hilfe
wenn ich portupgrade aus einem programm heraus aufrufe, dann fehlt ein teil des output.
wenn ich also einen aufruf wie
Code:
portupgrade -v -y -N -PP games/angband
Code:
-> Session started at: Thu, 06 Apr 2006 10:46:10 +0000
---> Fresh installation of games/angband started at: Thu, 06 Apr 2006 10:46:17 +0000
---> Checking for the latest package of 'games/angband'
---> Fetching the package(s) for 'angband-3.0.6' (games/angband)[color=red]
---> Fetching angband-3.0.6
++ Will try the following sites in the order named:
ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/
---> Invoking a command: curl ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/angband-3.0.6.tbz -o /var/tmp/portupgradeURBFUqpc/angband-3.0.6.tbz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 579k 0 1404 0 0 1423 0 0:06:57 --:--:-- 0:06:57 1423
20 579k 20 120k 0 0 75560 0 0:00:07 0:00:01 0:00:06 183k
59 579k 59 344k 0 0 130k 0 0:00:04 0:00:02 0:00:02 207k
96 579k 96 559k 0 0 153k 0 0:00:03 0:00:03 --:--:-- 210k
100 579k 100 579k 0 0 151k 0 0:00:03 0:00:03 --:--:-- 204k
---> Downloaded as angband-3.0.6.tbz
---> Identifying the package /var/tmp/portupgradeURBFUqpc/angband-3.0.6.tbz
** Failed to save the dowloaded tarball as /usr/ports/packages/All/angband-3.0.6.tbz
---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
! angband-3.0.6 (Permission denied - /usr/ports/packages/All/angband-3.0.6.tbz)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
** Could not clean up temporary directory: Directory not empty - /var/tmp/portupgradeURBFUqpc[/color]
---> Fetching the latest package(s) for 'angband' (games/angband)
[color=red]---> Fetching angband
++ Will try the following sites in the order named:
ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/
---> Invoking a command: curl ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/angband.tbz -o /var/tmp/portupgrade7LnEZ0Si/angband.tbz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 579k 0 1404 0 0 1451 0 0:06:49 --:--:-- 0:06:49 1451
9 579k 9 56160 0 0 39568 0 0:00:15 0:00:01 0:00:14 118k
25 579k 25 147k 0 0 62424 0 0:00:09 0:00:02 0:00:07 100k
55 579k 55 322k 0 0 95434 0 0:00:06 0:00:03 0:00:03 128k
80 579k 80 464k 0 0 105k 0 0:00:05 0:00:04 0:00:01 134k
100 579k 100 579k 0 0 110k 0 0:00:05 0:00:05 --:--:-- 135k
---> Downloaded as angband.tbz
---> Identifying the package /var/tmp/portupgrade7LnEZ0Si/angband.tbz
** Failed to save the dowloaded tarball as /usr/ports/packages/All/angband-3.0.6.tbz
---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
! angband@ (Permission denied - /usr/ports/packages/All/angband-3.0.6.tbz)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
** Could not clean up temporary directory: Directory not empty - /var/tmp/portupgrade7LnEZ0Si[/color]
---> Fresh installation of games/angband ended at: Thu, 06 Apr 2006 10:46:31 +0000 (consumed 00:00:13)
---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
! games/angband (package not found)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
---> Session ended at: Thu, 06 Apr 2006 10:46:31 +0000 (consumed 00:00:20)
außerdem gibt es eine andere fehlermeldung undzwa:
Code:
** Could not find the latest version (3.0.6) ** No package available: games/angband
ich bin relativ ratlos

ich kann auschließen, dass es sich um ein problem von popen Kprocess oder einer anderen system schnittstelle handelt, wenn ich nämlich ein | tee logfile and den befehl selbst hänge (sowohl im aufruf des programms als auch auf der kommandozeile) erzeugen beide unterschiedliche logfiles.
auch liegt es nicht an fetch-befehl der an den jeweiligen stellen benutzt wird, ich habe es schon mit curl und mit fetch ausprobiert, gleiches ergebnis.
vielen dank für eure hilfe

