Page 1 of 1

Very minor PPM bug - Precise 5.7.1

Posted: Mon 16 Sep 2013, 08:54
by PaulR
While examining the dependencies for the full Inkscape package I got this screen that tells me that I have "KB (MB)" free!

I also think the two columns of explanatory text would look better and be much easier to read if it was in one full width text area. If someone could point me at the source it might prove a simple learning exercise!

Paul

Re: Very minor PPM bug - Precise 5.7.1

Posted: Mon 16 Sep 2013, 09:40
by L18L
Sorry Paul, I cannot confirm :wink:
I got this screen that tells me that I have "232448KB (227MB)" free!
227 is content of /tmp/pup_event_sizefreem

Posted: Mon 16 Sep 2013, 10:58
by Karl Godt
If someone could point me at the source it might prove a simple learning exercise!

file /usr/local/bin/ppm
/usr/local/bin/ppm: symbolic link to `../petget/pkg_chooser.sh'

file /usr/local/bin/../petget/pkg_chooser.sh
/usr/local/bin/../petget/pkg_chooser.sh: Bourne-Again shell script text executable

Posted: Mon 16 Sep 2013, 11:01
by Karl Godt
/tmp/pup_event_sizefreem
is created and updated by /sbin/pup_event_frontend_d I think

If you disable pup_event_frontend_d in the eventmanager to reduce resource usage, that file might not exist .

:?: :lol:

Posted: Mon 16 Sep 2013, 11:05
by PaulR
Well that's odd. I just repeated the process and it is now showing the correct figure (439 MB) from /tmp/pup_event_sizefreem but as you can see from my screenshot it was definitely wrong the first time I tried it!

Paul

Posted: Mon 16 Sep 2013, 11:19
by Karl Godt
Probably not thread save - Eeepc 1core - 2threads , probably was trying to read that file , wile it got updated .

Anyway I think it is a bug
because a test is missing for that variable

SIZEFREEM=`cat /tmp/pup_event_sizefreem`
SIZEFREEK=`expr $SIZEFREEM \* 1024`

in installpreview.sh

and installpreview.sh should not rely on /tmp/sizefreemem file, but should figure out itself .

point me at the source

Posted: Mon 16 Sep 2013, 11:21
by L18L
Karl Godt wrote:
If someone could point me at the source it might prove a simple learning exercise!

file /usr/local/bin/ppm
/usr/local/bin/ppm: symbolic link to `../petget/pkg_chooser.sh'

file /usr/local/bin/../petget/pkg_chooser.sh
/usr/local/bin/../petget/pkg_chooser.sh: Bourne-Again shell script text executable
Some people use to fill Subject description :wink:

I see , you got it :lol:
installpreview.sh should not rely on /tmp/sizefreemem file, but should figure out itself
+1

Posted: Mon 16 Sep 2013, 12:01
by PaulR
Karl Godt wrote:Probably not thread save - Eeepc 1core - 2threads , probably was trying to read that file , wile it got updated .
This is on a Toshiba laptop but yes, before multi-core processors :)

@L18L: sorry I always forget to enter the description - must try harder!

Paul

Posted: Tue 17 Sep 2013, 08:19
by PaulR
I now have an annoying empty line in the list of installed packages. Nothing happens when I click it and it remains after sorting by column.

empty line

Posted: Tue 17 Sep 2013, 09:17
by L18L
PaulR wrote:I now have an annoying empty line in the list of installed packages. Nothing happens when I click it and it remains after sorting by column.
Try to edit your file /root/.packages/user-installed-packages.

There should be an empty line I think.
Delete it.

Posted: Tue 17 Sep 2013, 09:32
by PaulR
Thank you, I was wondering which file needed editing!

Seems the file was somehow malformed - after the entry for tint2 the next line was:

|Desktop||WM Switcher Switch windowmanagers|

which isn't in the same format as the other lines. I've removed it and the empty line has disappeared in PPM

Paul