Very minor PPM bug - Precise 5.7.1

Please post any bugs you have found
Post Reply
Message
Author
PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

Very minor PPM bug - Precise 5.7.1

#1 Post 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
Attachments
capture7890.png
(92.71 KiB) Downloaded 436 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Very minor PPM bug - Precise 5.7.1

#2 Post 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
Attachments
ppm_install_preview.sh.png
(60.53 KiB) Downloaded 403 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post 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:

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#5 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post 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 .

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

point me at the source

#7 Post 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

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#8 Post 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

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#9 Post 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.
Attachments
capture24314.png
(29.54 KiB) Downloaded 293 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

empty line

#10 Post 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.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#11 Post 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

Post Reply