Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KiB zamiast MiB
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
Bialy
Guru
Guru


Joined: 20 Mar 2006
Posts: 486

PostPosted: Thu Apr 02, 2015 9:36 pm    Post subject: KiB zamiast MiB Reply with quote

Od jakiegoś czasu (nie przeszkadzało mi to ze względu na brak mocy przerobowych) zauważyłem, że emerge pokazuje wagę paczek w
Code:
KiB
zamiast
Code:
MiB

Jest to troszkę denerwujące.
Gdzie to mogę zmienić?
Back to top
View user's profile Send private message
Jacekalex
Guru
Guru


Joined: 17 Sep 2009
Posts: 553

PostPosted: Sat Apr 02, 2016 5:47 am    Post subject: Reply with quote

/usr/lib/portage/python3.4/phase-functions.sh wrote:
if type -P du &>/dev/null; then
local sz=( $(du -ks "${WORKDIR}") )
einfo "Final size of build directory: ${sz[0]} KiB"
sz=( $(du -ks "${D}") )
einfo "Final size of installed tree: ${sz[0]} KiB"
__vecho
fi


Możesz tam zmienić wynik du -ks na du -ms ale żeby ta zmiana przetrwała aktualizacje portage, trzeba zrobić z tego łatkę, i schować w /etc/portage/patches/sys-apps/portage/.

Skrypt siedzi u mnie w:
Code:
~> qlist sys-apps/portage | grep phase-functions.sh
/usr/lib/portage/python2.7/phase-functions.sh
/usr/lib/portage/python3.4/phase-functions.sh


Pozdro
8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
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