Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 22:26
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Very minor PPM bug - Precise 5.7.1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Mon 16 Sep 2013, 04:54    Post subject:  Very minor PPM bug - Precise 5.7.1  

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
capture7890.png
Description 
png

 Download 
Filename  capture7890.png 
Filesize  92.71 KB 
Downloaded  159 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 16 Sep 2013, 05:40    Post subject: Re: Very minor PPM bug - Precise 5.7.1
Subject description: /usr/local/petget/installpreview.sh
 

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
ppm_install_preview.sh.png
 Description   
 Filesize   60.53 KB
 Viewed   256 Time(s)

ppm_install_preview.sh.png

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Mon 16 Sep 2013, 06:58    Post subject:  

Quote:
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
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Mon 16 Sep 2013, 07:01    Post subject:  

Quote:
/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 .

Question Laughing
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Mon 16 Sep 2013, 07:05    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Mon 16 Sep 2013, 07:19    Post subject:  

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 .
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 16 Sep 2013, 07:21    Post subject: point me at the source
Subject description: ?
 

Karl Godt wrote:
Quote:
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 Laughing

Quote:
installpreview.sh should not rely on /tmp/sizefreemem file, but should figure out itself
+1
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Mon 16 Sep 2013, 08:01    Post subject:  

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 Smile

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

Paul
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Tue 17 Sep 2013, 04:19    Post subject:  

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.
capture24314.png
 Description   
 Filesize   29.54 KB
 Viewed   167 Time(s)

capture24314.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 17 Sep 2013, 05:17    Post subject: empty line
Subject description: delete it
 

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.
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 243
Location: UK

PostPosted: Tue 17 Sep 2013, 05:32    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0691s ][ Queries: 12 (0.0095s) ][ GZIP on ]