ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <vanyaz@mccme.ru>
To: <devel@linux.iplabs.ru>
Subject: [devel] apt (a small patch)
Date: Tue, 6 Feb 2001 21:00:03 +0300 (MSK)
Message-ID: <Pine.LNX.4.33L.0102062012360.8177-300000@zephyrous.ru> (raw)

[-- 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;

                 reply	other threads:[~2001-02-06 18:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33L.0102062012360.8177-300000@zephyrous.ru \
    --to=vanyaz@mccme.ru \
    --cc=devel@linux.iplabs.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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