Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 331454 Details for
Bug 445910
app-admin/localepurge-0.5.4 calc error with empty SPACEAFTER
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to solve this bug
localepurge-0.5.4-calc-error.patch (text/plain), 730 bytes, created by
Wim Muskee
on 2012-12-04 22:14:08 UTC
(
hide
)
Description:
patch to solve this bug
Filename:
MIME Type:
Creator:
Wim Muskee
Created:
2012-12-04 22:14:08 UTC
Size:
730 bytes
patch
obsolete
>--- localepurge.orig 2012-12-04 23:08:17.754765708 +0100 >+++ localepurge 2012-12-04 23:09:02.397765264 +0100 >@@ -165,7 +165,14 @@ > ${ACTION} `find ${REMOVEPATH} -type f -o -type l` > > if [ "$SHOWFREEDSPACE" = "enabled" ]; then >- SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') >+ # if symlink, REMOVEPATH could be removed >+ # check from parentdir then >+ if [ -d ${REMOVEPATH} ]; then >+ SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') >+ else >+ SPACEAFTER=$(df -P ${REMOVEPATH%/*} | awk '{if ( NR==2 ) { print $3 }}') >+ fi >+ > SPACESUM=$(($SPACEBEFORE - $SPACEAFTER)) > > if test $SPACESUM -gt 0 ; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 445910
: 331454