FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 09-11-2011, 02:47 AM
Dave Reisner
 
Default paccache: escape . in trimming of diskspace string

Before:
==> finished dry run: 2 candidates (diskspace saved: 7. MiB)

After:
==> finished dry run: 2 candidates (diskspace saved: 7.8 MiB)

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
contrib/paccache.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/paccache.in b/contrib/paccache.in
index b191ed9..8a8cad4 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -121,7 +121,7 @@ size_to_human() {
}

sizestr = sprintf("%.2f", size)
- sub(/.?0+$/, "", sizestr)
+ sub(/.?0+$/, "", sizestr)
printf("%s %s", sizestr, suffix[count])
}'
}
--
1.7.6.1
 

Thread Tools




All times are GMT. The time now is 11:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org