ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] apt (a small patch)
@ 2001-02-06 18:00 Ivan Zakharyaschev
  0 siblings, 0 replies; only message in thread
From: Ivan Zakharyaschev @ 2001-02-06 18:00 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 300 bytes --]

	Добрый вечер!

apt-get некрасиво выглядит, когда изменнеия в занятом месте на диске после
установки составят 0 байт. Этот случай в коде был пропущен. Посылаю
два небольших патча (один из них вводит новое сообщение, другой обходится
без него -- чтобы не менять переводы).

-- 
Best regards,
	Ivan Z.

[-- Attachment #2: Type: TEXT/PLAIN, Size: 744 bytes --]

--- apt-0.3.19cnc32/cmdline/apt-get.cc.orig	Tue Feb  6 20:26:01 2001
+++ apt-0.3.19cnc32/cmdline/apt-get.cc	Tue Feb  6 20:30:02 2001
@@ -815,9 +815,12 @@
    
    // Size delta
    if (Cache->UsrSize() > 0)
-      c1out << SizeToStr(Cache->UsrSize()) << _("B will be used.") << endl;
+      c1out << SizeToStr(Cache->UsrSize()) << _("B will be used.");
    else if (Cache->UsrSize() < 0)
-      c1out << SizeToStr(-1*Cache->UsrSize()) << _("B will be freed.") << endl;
+      c1out << SizeToStr(-1*Cache->UsrSize()) << _("B will be freed.");
+   else /* if (Cache->UsrSize() == 0) */
+      c1out << _("used disk space will remain the same.");
+   c1out  << endl;
 
    if (_error->PendingError() == true)
       return false;

[-- Attachment #3: Type: TEXT/PLAIN, Size: 766 bytes --]

--- apt-0.3.19cnc32/cmdline/apt-get.cc.orig	Tue Feb  6 20:26:01 2001
+++ apt-0.3.19cnc32/cmdline/apt-get.cc	Tue Feb  6 20:31:57 2001
@@ -814,10 +814,11 @@
    c1out << _(" of archives. After unpacking ");
    
    // Size delta
-   if (Cache->UsrSize() > 0)
-      c1out << SizeToStr(Cache->UsrSize()) << _("B will be used.") << endl;
-   else if (Cache->UsrSize() < 0)
-      c1out << SizeToStr(-1*Cache->UsrSize()) << _("B will be freed.") << endl;
+   if (Cache->UsrSize() >= 0)
+      c1out << SizeToStr(Cache->UsrSize()) << _("B will be used.");
+   else /* if (Cache->UsrSize() < 0) */
+      c1out << SizeToStr(-1*Cache->UsrSize()) << _("B will be freed.");
+   c1out  << endl;
 
    if (_error->PendingError() == true)
       return false;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-06 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-06 18:00 [devel] apt (a small patch) Ivan Zakharyaschev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git