This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Setup: hardlinks & percentages. (+patches)
- From: Bas van Gompel <cygwin-apps dot buzz at bavag dot tmfweb dot nl>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 7 Jan 2005 22:24:47 +0100 (MET)
- Subject: Setup: hardlinks & percentages. (+patches)
- Organisation: Ehm...
- Reply-to: cygwin-apps mailing-list <cygwin-apps at cygwin dot com>
Hallo,
Two little patches:
When setup is making hardlinks, it doesn't use the prefixPath.
It is therefore just luck that hardlinks in normal packages ``work''.
Hardlinks in source-packages however don't, currently.
(case in point: rcs.)
2005-01-07 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
* archive.cc (archive::extract_file): Use prefixPath for linktarget
on hardlinks.
--- setup/archive.cc 25 Dec 2004 23:05:56 -0000 2.10
+++ setup/archive.cc 7 Jan 2005 20:39:42 -0000
@@ -161,7 +161,7 @@ archive::extract_file (archive * source,
io_stream::remove (destfilename);
int ok =
io_stream::mklink (destfilename,
- prefixURL + source->linktarget (),
+ prefixURL + prefixPath + source->linktarget (),
IO_STREAM_HARDLINK);
/* FIXME: check what tar's filelength is set to for hardlinks */
source->skip_file ();
Then, when logging progress on reading inifiles, the percentages
are displayed as single characters.
2005-01-07 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
* ini.cc (class GuiParseFeedback): change type of lastpct.
--- setup/ini.cc 27 Dec 2004 16:12:43 -0000 2.39
+++ setup/ini.cc 7 Jan 2005 20:39:44 -0000
@@ -118,7 +118,7 @@ public:
Progress.SetText4("Package:");
}
private:
- unsigned char lastpct;
+ unsigned int lastpct;
};
L8r,
Buzz.
--
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re