]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
15 years ago* main.cc (set_cout): Load AttachConsole dynamically to avoid using it on older
Christopher Faylor [Fri, 10 Apr 2009 02:12:56 +0000 (02:12 +0000)]
* main.cc (set_cout): Load AttachConsole dynamically to avoid using it on older
Windows which don't support it.

15 years agofix whitespace
Christopher Faylor [Sat, 21 Mar 2009 21:15:47 +0000 (21:15 +0000)]
fix whitespace

15 years ago* LogFile.cc (LogFile::endEntry): Output messages to stdout.
Christopher Faylor [Sat, 21 Mar 2009 21:00:25 +0000 (21:00 +0000)]
* LogFile.cc (LogFile::endEntry): Output messages to stdout.
* main.cc (set_cout): New function.  Sets stdout to console if one exists.
(main): Redirect stdout to console if unattended_mode or help option is
specified and no stdout is available.  Christopher Faylor <me+cygwin@cgf.cx>
* propsheet.cc (PropSheetWndProc): Detect a Window closing event and issue an
"Are you sure" message.

16 years ago * package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
Corinna Vinschen [Fri, 29 Aug 2008 16:06:29 +0000 (16:06 +0000)]
* package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
order into the dependency list.  Add comment to explain why.

16 years ago * KeysSetting.cc: Include string.h for memcpy et al.
Brian Dessent [Fri, 22 Aug 2008 11:34:43 +0000 (11:34 +0000)]
* KeysSetting.cc: Include string.h for memcpy et al.
* filemanip.cc: Include stdlib.h for for mbstowcs.
* io_stream_cygfile.h: Update cygmkdir_p prototype for mode_t.
* mount.cc (conv_fstab_spaces): Silence gcc 4.3 warning ("parentheses
around assignment used as truth value").

16 years ago * install.cc (Installer::StandardDirs): Additionally create /var/log
Corinna Vinschen [Wed, 20 Aug 2008 13:17:41 +0000 (13:17 +0000)]
* install.cc (Installer::StandardDirs): Additionally create /var/log
dir.  Set mode of /var/log and /var/run to 01777.
* localdir.cc (LocalDirSetting::save): Create /var/log with 01777
permissions before creating setup.log files.

16 years ago * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
Corinna Vinschen [Wed, 20 Aug 2008 10:33:25 +0000 (10:33 +0000)]
* io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
Accommodate SetPosixPerms being method of nt_sec.
* mkdir.cc (mkdir_p): Ditto.
* mklink2.cc (mkcygsymlink_nt): Ditto.
* win32.cc: Slightly rearrange.
(NTSecurity::SetPosixPerms): Make SetPosixPerms method of NTSecurity
rather than stand-alone function.  Remove dynamic allocation for
security descriptors in favor of static allocation.  Drop out
preliminary if well-known SIDs are not initialized.  Slightly change
and rearrange comments.  Add creating NULL SID ACE for special
permissions.
(NTSecurity::initialiseWellKnownSIDs): New function, replacing
NTSecurity::initialiseEveryOneSID.  Initialize all well-known SIDs
here.  Set wellKnownSIDsinitialized to true on success.
(NTSecurity::setDefaultDACL): Don't call initialiseEveryOneSID.  Change
comment.  Drop setting failed.  Don't open process token here.
(NTSecurity::setBackupPrivileges): New function.
(NTSecurity::setDefaultSecurity): Call initialiseWellKnownSIDs.
Open process token here.  Disable setting primary group.  Add comment
to explain why.
* win32.h (SetPosixPerms): Move to NTSecurity.
(class NTSecurity): Add SetPosixPerms method.  Make all SIDs private
again.  Make NoteFailedAPI private.  Add setBackupPrivileges method.
Rename usid to UsersSID.  Remove failed method and _failed member.
Add wellKnownSIDsinitialized accessors and _wellKnownSIDsinitialized
member.

16 years ago * install.cc (struct std_dirs_t): New type.
Corinna Vinschen [Tue, 19 Aug 2008 21:04:15 +0000 (21:04 +0000)]
* install.cc (struct std_dirs_t): New type.
(class Installer): Change type of StandardDirs to std_dirs_t.
(Installer::StandardDirs): Store filename and mode.
(do_install_thread): Call io_stream::mkpath_p with name and mode from
Installer::StandardDirs.
* main.cc (main): Call setDefaultSecurity on global nt_sec.
* IOStreamProvider.h (IOStreamProvider::mkdir_p): Add mode parameter.
* LogFile.cc (LogFile::log_save): Call io_stream::mkpath_p with 0755
mode.
* UserSettings.cc (UserSettings::settingFileForSave): Ditto.
* desktop.cc (make_link): Ditto.
* download.cc (download_one): Ditto.
* ini.cc (do_remote_ini): Ditto.
(do_ini_thread): Ditto.
* package_db.cc (packagedb::flush): Ditto.
* archive.cc (archive::extract_file): Ditto.  Call set_mtime_and_mode
with mode from archive.  Add code to handle directory permissions as
well.
* archive_tar.cc (archive_tar::get_mtime): Return time_t.  Reformat.
(archive_tar::get_mode): New method.
* archive_tar.h (class archive_tar_file): Fix prototypes.  Replace
prototype for set_mtime with prototype for set_mtime_and_mode.
(class archive_tar): Ditto.
* archive_tar_file.cc (archive_tar_file::get_mtime): Return time_t.
(archive_tar_file::get_mode): New method returning mode from tar header.
* compress_bz.cc (compress_bz::set_mtime_and_mode): Replace set_mtime.
(compress_bz::get_mtime): Return time_t.
(compress_bz::get_mode): New function.
* compress_gz.cc: Ditto.
* compress_lzma.cc: Ditto.
* io_stream.cc (io_stream::mkpath_p): Take additional file mode.
Call mkdir_p with additional file mode.
* io_stream_cygfile.cc (CygFileProvider::mkdir_p): Take additional file
mode.
(cygmkdir_p): Ditto.  Call mkdir_p with additional file mode.
(io_stream_cygfile::set_mtime_and_mode): Replace set_mtime.  Call
SetPosixPerms.
* io_stream_file.cc (FileProvider::mkdir_p): Take additional file mode.
(io_stream_file::set_mtime_and_mode): Replace set_mtime.
* mkdir.cc (init_ntfuncs): New function to initialize function pointers
from ntdll.dll.
(mkdir_p): Take additional file mode.  On NT, use NT functions to create
directory.  Call SetPosixPerms.
* compress_bz.h: Change prototypes accordingly.
* compress_gz.h: Ditto.
* compress_lzma.h: Ditto.
* io_stream.h: Ditto.
* io_stream_cygfile.h: Ditto.
* io_stream_file.h: Ditto.
* io_stream_memory.h: Ditto.
* mkdir.h: Ditto.
* mklink2.cc (mkcygsymlink_nt): Open file with STANDARD_RIGHTS_ALL
access and FILE_FLAG_BACKUP_SEMANTICS flag.  Call SetPosixPerms.
* mount.cc (from_fstab): Open file with FILE_FLAG_BACKUP_SEMANTICS.
* script.cc (OutputLog::OutputLog): Call io_stream::mkpath_p with 0755
mode.  Open file with FILE_FLAG_BACKUP_SEMANTICS.
* win32.cc (SetPosixPerms): New function to set POSIX-like permissions.
(nt_sec): New global NTSecurity variable.
(NTSecurity::setDefaultDACL): Open token with TOKEN_ADJUST_PRIVILEGES.
(NTSecurity::setDefaultSecurity): Enable SE_BACKUP_NAME and
SE_RESTORE_NAME privileges if available.
* win32.h (SetPosixPerms): Add prototype.
(class NTSecurity): Make everyOneSID and administratorsSID public.
(nt_sec): Declare.

16 years ago * mount.cc (unconvert_slashes): New inline function.
Corinna Vinschen [Thu, 14 Aug 2008 09:38:21 +0000 (09:38 +0000)]
* mount.cc (unconvert_slashes): New inline function.
(skip_ws): New inline function.
(find_ws): New inline function.
(conv_fstab_spaces): New inline function.
(from_fstab_line): New function to read single line from fstab file.
(from_fstab): New function to read /etc/fstab file and fill mount
table.
(read_mounts_nt): Call from_fstab after getting setup/rootdir from
registry.  Only call add_usr_mnts if no fstab file found.

16 years ago * install.cc (Installer::installOne): Skip 46 bytes type tar package
Corinna Vinschen [Wed, 13 Aug 2008 09:51:11 +0000 (09:51 +0000)]
* install.cc (Installer::installOne): Skip 46 bytes type tar package
silently.

16 years ago * install.cc (Installer::installOne): Use MoveFileExW on NT. Special
Corinna Vinschen [Wed, 13 Aug 2008 08:54:14 +0000 (08:54 +0000)]
* install.cc (Installer::installOne): Use MoveFileExW on NT.  Special
case for bug in Windows 2000.
* package_meta.cc (packagemeta::uninstall): Use wide char file functions
on NT.
* win32.h (VersionInfo::major): New method.
(VersionInfo::minor): New method.
(OSMajorVersion): Define.
(OSMinorVersion): Define.

16 years ago Revamp for Cygwin 1.7.
Corinna Vinschen [Tue, 12 Aug 2008 20:32:08 +0000 (20:32 +0000)]
Revamp for Cygwin 1.7.
* desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
(save_icon): Ditto.
* filemanip.cc (tfx_chars): New char table for wide char transformation
of reserved FS chars to UNICODE private use area.
(transform_chars): New static function.
(mklongpath): New function to convert multibyte path to wide char
path with long path prefix.
* filemanip.h (mklongpath): Declare.
* ini.h (SETUP_INI_FILENAME): Use setup.ini filenames as defined in
real life (setup-2.ini/setup.ini).
(SETUP_BZ2_FILENAME): Ditto.
* install.cc (do_install_thread): Don't create registry mount points
on NT, rather create setup/rootdir entry.
* io_stream_cygfile.cc: Throughout use wide char file functions on NT.
(io_stream_cygfile::w_str): New method to create wide char path.
* io_stream_cygfile.h (class io_stream_cygfile): Remove lmode member.
Add wname member and w_str method.
* io_stream_file.cc: Throughout use wide char file functions on NT.
(io_stream_file::w_str): New method to create wide char path.
* io_stream_file.h (class io_stream_file): Remove lmode member.
Add wname member and w_str method.
* mkdir.cc (mkdir_p): Use wide char file functions on NT.
* mklink2.cc (mkcygsymlink_9x): Rename from mkcygsymlink.  Make static.
(mkcygsymlink_nt): New static function.
(mkcygsymlink): Just call mkcygsymlink_9x or mkcygsymlink_nt dependent
on OS.
* mount.cc (CYGWIN_INFO_CYGWIN_SETUP_REGISTRY_NAME): Define.
(remove1): Move to earlier point in file to avoid declaration.
(remove_mount): Ditto.  Make static.
(create_install_root): New function to create setup/rootdir registry
value on NT.
(read_mounts_9x): Rename from read_mounts.  Make static.  Conditionalize
for OS.
(add_usr_mnts): New static function.
(read_mounts_nt): Ditto, to read mounts on NT.
(read_mounts): Just call read_mounts_nt or read_mounts_9x dependent on
OS.
(set_root_dir): On NT, call read_mounts.
(cygpath): Only add slash for non-root mount to avoid multiple slashes
in resulting path (invalid in long path names).
* mount.h (find_mount): Drop declaration.
(remove_mount): Ditto.
(create_install_root): Add declaration.
(read_mounts): Accommodate new parameter.
* package_db.cc (chosen_db_task): New global variable.
* package_db.h (chosen_db_task): Declare.
* root.cc (check_if_enable_next): Don't use get_root_dir here to
avoid having to call save_dialog in RootPage::OnMessageCmd.
(GetDlgItemRect): New static inline function.
(SetDlgItemRect): Ditto.
(load_dialog): On NT, stretch "Install For" block to full dialog width
and hide "Default Text File Type" block.
(save_dialog): On NT set root_text always to IDC_ROOT_BINARY.
(RootPage::OnMessageCmd): Remove call to save_dialog.
(RootPage::OnNext): Initialize packagedb here the first time, to
avoid fetching wrong data from different previous installation.
* source.cc (save_dialog): Don't initialize packagedb here, rather
just memorize setting in chosen_db_task for the deferred initialization
in RootPage::OnNext.

16 years ago Implement command-line selection of packages to install and make
Dave Korn [Thu, 7 Aug 2008 22:59:17 +0000 (22:59 +0000)]
Implement command-line selection of packages to install and make
unattended mode deal with any dialogs that might arise.  A joint
effort synthesized from contributions by:

Dr. Frank Lee  <rl201@cam.ac.uk>
Bryan Thrall  <bryan.thrall@flightsafety.com>
Kohsuke Kawaguchi  <kk@kohsuke.org>
Dave Korn  <dave.korn.cygwin@gmail.com>

* install.cc (rebootneeded):  Don't define statically here.
(do_install_thread):  Let exit_msg reflect rebootneeded.
* main.cc (main):  If rebootneeded, log it when exiting.
* msg.cc (mbox):  In unattended_mode, choose and log default answer.
* package_db.cc (packagedb::fillMissingCategory):  Iterate over all
packages adding those selected by packagemeta::isManuallyWanted to
base category so that command-line selections are installed.
* package_meta.cc (PackageOption):  Add new StringOption to allow
command-line selection of packages to add to base install.
(packagemeta::isManuallyWanted):  New function tests if package was
selected on command-line.
(packagemeta::addToCategoryBase):  New function adds package to
"base" category.
* state.cc (rebootneeded):  Define here non-static.
* state.h (rebootneeded):  Declare here with extern linkage.
* threebar.cc (ThreeBarProgressPage::MaximizeDialog):  Don't change
size when running in unattended mode.

16 years ago* UserSettings.cc (UserSettings::settingFileForLoad): Look locally for settings
Christopher Faylor [Tue, 5 Aug 2008 15:48:55 +0000 (15:48 +0000)]
* UserSettings.cc (UserSettings::settingFileForLoad): Look locally for settings
before looking outside of current directory.
* choose.cc (ChooserPage::ChooserPage): Record the property sheet's current
show state via new passed in parameter.
* choose.h (ChooserPage::ChooserPage): Reflect change in argument list.
(ChooserPage::nCmdShow): Define new element.
* main.cc (main): Send current show state to Chooser.
* package_version.cc (packageversion::set_requirements): Increase recursion
check from 5 to 30.
* propsheet.cc (PropSheetWndProc): Register hwndDlg with ThreeBarProgressPage.
* threebar.cc (ControlAdjuster::ControlInfo): Initialize cmd_show_set.
(ThreeBarProgressPage::MaximizeDialog): New function.
(ThreeBarProgressPage::OnMessageApp): Call MaximizeDialog to maximize package
selection screen and restore when done.
* threebar.h (ThreeBarProgressPage::MaximizeDialog): Declare function.
(ThreeBarProgressPage::cmd_show_set): Declare variable.
(ThreeBarProgressPage::cmd_show): Declare variable.
(ThreeBarProgressPage::ins_dialog): Declare variable.
(ThreeBarProgressPage::SetHwndDialog): Define function.

16 years agoAdd support for .tar.lzma files (decompress only).
Charles Wilson [Wed, 23 Jul 2008 01:48:16 +0000 (01:48 +0000)]
Add support for .tar.lzma files (decompress only).

16 years agoFix memory leak in compress::decompress().
Charles Wilson [Wed, 9 Jul 2008 01:44:19 +0000 (01:44 +0000)]
Fix memory leak in compress::decompress().

2008-06-29  Charles Wilson  <cygwin@cwilson.fastmail.fm>

* compress.cc (compress::decompress): clean up concrete
decompressor objects on failure -- but in that case, do
NOT destroy original io_stream.
* compress_bz.h (compress_bz::release_original): new method.
(owns_original): new member variable.
* compress_bz.cc (compress_bz::release_original): new method.
(compress_bz::compress_bz): take ownership of parent by default.
(compress_bz::~compress_bz): only delete original if
owns_original is true.
* compress_gz.h (compress_gz::release_original): new method.
(owns_original): new member variable.
* compress_gz.cc (compress_gz::release_original): new method.
(compress_gz::construct): take ownership of parent by default.
(compress_gz::~compress_gz): only delete original if
owns_original is true.

16 years ago * configure.in, gpg-error-config-fake: Revert previous removal.
Dave Korn [Wed, 25 Jun 2008 08:40:12 +0000 (08:40 +0000)]
* configure.in, gpg-error-config-fake:  Revert previous removal.

16 years ago * gpg-error-config-fake: Delete file obsoleted by de-hackification.
Dave Korn [Wed, 25 Jun 2008 00:57:19 +0000 (00:57 +0000)]
* gpg-error-config-fake:  Delete file obsoleted by de-hackification.

16 years ago * net.cc: Correct stray CRLF.
Dave Korn [Wed, 25 Jun 2008 00:54:20 +0000 (00:54 +0000)]
* net.cc:  Correct stray CRLF.

16 years ago * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Remove nasty hack.
Dave Korn [Wed, 25 Jun 2008 00:52:01 +0000 (00:52 +0000)]
* configure.in (ac_cv_path_GPG_ERROR_CONFIG):  Remove nasty hack.
* gpg-error-config-fake:  Delete file obsoleted by de-hackification.

16 years ago* configure.in: Disable shared library builds.
Christopher Faylor [Tue, 24 Jun 2008 04:48:47 +0000 (04:48 +0000)]
* configure.in: Disable shared library builds.

16 years ago* Makefile.am: Make and install libraries into common location and use them
Christopher Faylor [Tue, 24 Jun 2008 04:25:30 +0000 (04:25 +0000)]
* Makefile.am: Make and install libraries into common location and use them
from there.
* configure.in: Find gpg-error-config in the libgpg-error/src subdirectory
rather than using the host system's version.  Set the prefix and exec_prefix to
a common location for the subdirs so that useful files will be installed in a
common location.

16 years ago Merged across diffs between setup_crypto_branch_branchpoint and
Dave Korn [Sun, 22 Jun 2008 02:37:17 +0000 (02:37 +0000)]
  Merged across diffs between setup_crypto_branch_branchpoint and
setup_crypto_branch_mergepoint2 from setup_crypto_branch.

* crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
KeysSetting.h, gpg-error-config-fake, cygwin.pub, cyg-pubkey.h,
gpg-key-to-s-expr.sh:  New files.
* ini.cc, ini.h, resource.h, res.rc, netio.cc, Makefile.am,
configure.ac, libgetopt++/src/OptionSet.cc:  Modified files.

16 years ago * setup/libgcrypt/: Fresh import of upstream sources of
Dave Korn [Mon, 16 Jun 2008 02:12:32 +0000 (02:12 +0000)]
* setup/libgcrypt/:  Fresh import of upstream sources of
libgcrypt-1.4.1.tar.bz2 from http://www.gnupg.org/

16 years ago * setup/libgpg-error/: Fresh import of upstream sources of
Dave Korn [Mon, 16 Jun 2008 02:07:35 +0000 (02:07 +0000)]
* setup/libgpg-error/:  Fresh import of upstream sources of
libgpg-error-1.6.tar.bz2 from http://www.gnupg.org/

16 years ago * mount.cc: Include malloc.h. setup_crypto_branch_branchpoint
Brian Dessent [Wed, 16 Apr 2008 10:07:26 +0000 (10:07 +0000)]
* mount.cc: Include malloc.h.
(is_admin): Use alloca instead of a VLA in case
GetTokenInformation is sensitive to alignment.

16 years ago * mount.cc (is_admin): Get explicit size of required buffer by
Brian Dessent [Wed, 16 Apr 2008 04:45:42 +0000 (04:45 +0000)]
* mount.cc (is_admin): Get explicit size of required buffer by
calling GetTokenInformation first with NULL.

16 years ago * Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
Brian Dessent [Thu, 10 Apr 2008 12:36:07 +0000 (12:36 +0000)]
* Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
are used.

16 years ago * README: flex and bison are required when building from CVS.
Brian Dessent [Wed, 9 Apr 2008 23:59:17 +0000 (23:59 +0000)]
* README: flex and bison are required when building from CVS.

16 years ago * Makefile.am (snapshot): Provide default value of ${cygwinsite}
Brian Dessent [Wed, 9 Apr 2008 02:46:35 +0000 (02:46 +0000)]
* Makefile.am (snapshot): Provide default value of ${cygwinsite}
if not set.

16 years ago * Makefile.am (release): Use -f so that "make release" works
Brian Dessent [Wed, 9 Apr 2008 02:35:48 +0000 (02:35 +0000)]
* Makefile.am (release): Use -f so that "make release" works
when existing binaries of the same name exist.

16 years ago * res.rc (IDD_SPLASH): Update copyright years on splash page.
Brian Dessent [Wed, 9 Apr 2008 02:29:29 +0000 (02:29 +0000)]
* res.rc (IDD_SPLASH): Update copyright years on splash page.

16 years ago * CHANGES: Update.
Brian Dessent [Wed, 9 Apr 2008 02:25:27 +0000 (02:25 +0000)]
* CHANGES: Update.
* install.cc (Installer::installOne): Cope with compressed
0-byte dummy packages.  Fix progress bar update bug introduced
in earlier refactoring.

16 years ago Various warning/header cleanups necessary for clean gcc 4.3 build.
Brian Dessent [Tue, 8 Apr 2008 23:50:54 +0000 (23:50 +0000)]
Various warning/header cleanups necessary for clean gcc 4.3 build.
* ConnectionSetting.cc: Include stdlib.h.
* LogFile.cc: Ditto.
* Makefile.am: Don't hardcode paths to MinGW libz and libbz2.
* PickView.cc: Include limits.h.
* String++.cc: Include string.h.
* archive_tar.cc (archive_tar::next_file_name): Silence nested-if
warning.
* autoload.c: Switch back to .text section before emiting
autoload_common.
* choose.cc: Include stdlib.h and algorithm.
* compress_gz.cc: Include memory.h and malloc.h.
* filemanip.cc: Include string.h.
(parse_filename): Silence nested-if warning.
* nio-ftp.cc (NetIO_FTP::NetIO_FTP): Silence warning.
* package_db.cc: Include algorithm.
* site.cc (get_site_list): Silence warning.
* win32.cc: Include memory.
* csu_util/MD5Sum.cc: Include string.h.
* CHANGES: Update.

16 years ago(Fixing erroneous previous commit to ChangeLog):
Dave Korn [Sun, 2 Mar 2008 22:18:16 +0000 (22:18 +0000)]
(Fixing erroneous previous commit to ChangeLog):
2008-03-02  Dave Korn  <dave.korn@artimi.com>

* install.cc (Installer::installOne):  Accept new HWND argument
from caller and pass it to MessageBox calls so that MB_TASKMODAL
can work.
(check_for_old_cygwin):  Likewise.
(do_install_thread):  Pass owner's HWND (from thread context) when
calling them.

16 years ago2008-03-02 Dave Korn <dave.korn@artimi.com>
Dave Korn [Sun, 2 Mar 2008 22:12:44 +0000 (22:12 +0000)]
2008-03-02  Dave Korn  <dave.korn@artimi.com>

* cygpackage.cc (Installer::installOne):  Accept new HWND argument
from caller and pass it to MessageBox calls so that MB_TASKMODAL
can work.
(check_for_old_cygwin):  Likewise.
(do_install_thread):  Pass owner's HWND (from thread context) when
calling them.

16 years ago2008-02-23 Dave Korn <dave.korn@artimi.com>
Dave Korn [Sat, 23 Feb 2008 18:55:04 +0000 (18:55 +0000)]
2008-02-23  Dave Korn  <dave.korn@artimi.com>

* cygpackage.cc (cygpackage::getfirstfile):  Guard against trying to
construct std::string from NULL returned by io_stream::gets when the
stream decompressor fails on a corrupt *.lst.gz file.

16 years ago2008-02-21 Dave Korn <dave.korn@artimi.com>
Dave Korn [Fri, 22 Feb 2008 00:03:58 +0000 (00:03 +0000)]
2008-02-21  Dave Korn  <dave.korn@artimi.com>

* geturl.cc (progress):  Correct SI unit notation.

16 years ago2008-02-01 Vincent Privat <vincent.privat@gmail.com>
Dave Korn [Sat, 2 Feb 2008 15:04:57 +0000 (15:04 +0000)]
2008-02-01  Vincent Privat <vincent.privat@gmail.com>

* net.cc (OnInit): New StringOption (ProxyOption)
This new option (-p) allows to call setup.exe with a proxy
in its command-line arguments.

17 years agoFix comment typo.
Brian Dessent [Wed, 1 Aug 2007 00:20:10 +0000 (00:20 +0000)]
Fix comment typo.

17 years ago * ini.cc (do_remote_ini): Fix crash due to double free of ini_file.
Brian Dessent [Wed, 1 Aug 2007 00:09:18 +0000 (00:09 +0000)]
* ini.cc (do_remote_ini): Fix crash due to double free of ini_file.

17 years ago * CHANGES: Update.
Brian Dessent [Mon, 30 Jul 2007 22:55:50 +0000 (22:55 +0000)]
* CHANGES: Update.
* configure.in (AM_INIT_AUTOMAKE): Enable more automake warnings.
* Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
(CLEANFILES): Add.  Minor portability tweaks.
* tests/Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
* archive.cc (archive::extract): Try to be more compatible when
opening tar files.
* compress_bz.cc: Fix whitespace throughout.
(compress_bz::~compress_bz): Ensure that underlying io_stream's dtor is
also run.
* install.cc (Installer::installOne): Refactor.
* package_db.cc (ConnectedLoopFinder::doIt): Move some log spewage into
setup.log.full from setup.log.
(packagedb::connectedBegin): Ditto. Consolidate log output to one line.

17 years ago * CHANGES: Update.
Brian Dessent [Mon, 2 Jul 2007 07:29:14 +0000 (07:29 +0000)]
* CHANGES: Update.

17 years agoMissed file in checkin.
Brian Dessent [Wed, 27 Jun 2007 01:49:26 +0000 (01:49 +0000)]
Missed file in checkin.

17 years ago * Makefile.am (release): Drop inconsistent use of $(EXEEXT). Leave an
Brian Dessent [Wed, 27 Jun 2007 01:41:46 +0000 (01:41 +0000)]
* Makefile.am (release): Drop inconsistent use of $(EXEEXT).  Leave an
untouched copy of setup.exe so that later make invocations don't
unnecessarily rebuild it.
(snapshot): Fix typo.
* install.cc (md5_one): Don't try to check packages whose
pkgsource.Cached () is NULL, as with those whose download failed.

17 years ago * CHANGES: Update to reflect release branch.
Brian Dessent [Tue, 26 Jun 2007 20:24:16 +0000 (20:24 +0000)]
* CHANGES: Update to reflect release branch.

17 years ago * CHANGES: Make current.
Brian Dessent [Tue, 26 Jun 2007 19:51:51 +0000 (19:51 +0000)]
* CHANGES: Make current.

17 years ago * find.h (class Find): Make _start_dir non-const.
Brian Dessent [Wed, 30 May 2007 09:49:24 +0000 (09:49 +0000)]
* find.h (class Find): Make _start_dir non-const.
* find.cc (Find::Find): Append a trailing slash to _start_dir only if
it does not already contain one.
(Find::accept): Use the previously stored value of _start_dir rather
than unconditionally appending a slash.

17 years ago * Makefile.am: No need to specify the default value of --preprocessor
Brian Dessent [Wed, 30 May 2007 05:53:02 +0000 (05:53 +0000)]
* Makefile.am: No need to specify the default value of --preprocessor
to windres.  Rework the automatic version extraction rules so that the
source tarball is generated with the proper name and directory instead
of setup-0.  Update snapshot rule to also upload a copy of the binary
with debugging symbols still present.

17 years agoRename files.
Brian Dessent [Wed, 30 May 2007 05:12:42 +0000 (05:12 +0000)]
Rename files.

17 years ago This is a general tidying up/modernization of the build infrastructure.
Brian Dessent [Wed, 30 May 2007 05:12:20 +0000 (05:12 +0000)]
This is a general tidying up/modernization of the build infrastructure.
Renaming the lexer and parser to .ll and .yy allows using automake's
builtin support for flex and bison with C++ sources, and libinilex is a
slightly cleaner way of omitting -Werror.

* Makefile.am (AUTOMAKE_OPTIONS): Move to AM_INIT_AUTOMAKE.
(AM_YFLAGS): Define.
(AM_LFLAGS): Define.
(INCLUDES): Remove redundant mingw directory.
(EXTRA_DIST): Adjust for newly named lexer/parser.
(BUILT_SOURCES): Ditto.
(inilint_LDADD): Ditto.
(inilint_SOURCES): Ditto.
(setup_LDADD): Ditto.
(setup_SOURCES): Ditto.
(iniparse.cc): Remove custom rules.
(inilex.cc): Ditto.
* configure.in: Update quoting and use modern form of AC_INIT and
AM_INIT_AUTOMAKE.
* inilex.l: Rename from this ...
* inilex.ll: ... to this.
* iniparse.y: Rename from this ...
* iniparse.yy: ... to this.

17 years ago * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
Brian Dessent [Wed, 30 May 2007 03:49:48 +0000 (03:49 +0000)]
* IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
Remove error_buf and error_count initializers.
(IniParseFindVisitor::visitFile): Store filename in current_ini_name.
Use yyerror_count and yyerror_messages in place of removed error_count
and error_buf members.
* IniParseFindVisitor.h (class IniParseFindVisitor): Remove error_buf
and error_count members.
* ini.cc: Include io_stream_memory.h.  Remove file static variables
error_buf, error_count, and ini_filename.
(GuiParseFeedback::progress): Remove some verbose log spam.
(do_remote_ini): Recode .ini-fetching logic to properly display parse
errors, and to account for corrupt bzip2 files.
(yyerror): Moved elsewhere.
(fprintf): Delete unused function.
* ini.h: Remove useless __cplusplus guard.  Declare extern variables
current_ini_name, yyerror_messages, and yyerror_count.
* inilex.l: Add current_ini_name, yyerror_messages, and
yyerror_count.
(ini_init): Initialize new variables.
(yybol): Delete.
(yyerror): Reimplement using std::string and relocate from ini.cc.
* io_stream.cc (io_stream::copy): Add clarifying comment.

17 years ago2007-05-04 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Fri, 4 May 2007 21:56:53 +0000 (21:56 +0000)]
2007-05-04  Igor Peshansky  <pechtcha@cs.nyu.edu>

* resource.h (IDC_STATIC_HEADER): New control id.
* res.rc (IDD_SPLASH): Adjust the copyright.
(IDD_DESKTOP): Make header text accessible as a separate control.
* desktop.cc (set_status): Use eset() instead of SetWindowText().
(load_dialog): Disable checkboxes and change dialog text in
download-only mode.
(DesktopSetupPage::OnInit): Disable checkboxes in download-only
mode.
* threebar.cc (ThreeBarProgressPage::OnMessageApp): Deprecate the
default fallthrough.
* download.cc (do_download_thread): Explicitly return the next
dialog.

17 years ago2007-04-19 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 19 Apr 2007 23:40:56 +0000 (23:40 +0000)]
2007-04-19  Max Bowsher  <maxb1@ukf.net>

* configure.in: Turn inilint default build off again, since I cannot
get it to work.

17 years agoTidy up eclectic whitespace in Makefile.am.
Max Bowsher [Thu, 19 Apr 2007 23:21:21 +0000 (23:21 +0000)]
Tidy up eclectic whitespace in Makefile.am.

17 years agoOops, update ChangeLog with details of additional changes accidentally
Max Bowsher [Thu, 19 Apr 2007 22:55:24 +0000 (22:55 +0000)]
Oops, update ChangeLog with details of additional changes accidentally
committed in the last commit.

17 years ago2007-04-19 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 19 Apr 2007 22:53:26 +0000 (22:53 +0000)]
2007-04-19  Max Bowsher  <maxb1@ukf.net>

* inilint.cc: Fix multiple compile errors.

17 years agoChangeLogs use tabs, not spaces.
Max Bowsher [Thu, 19 Apr 2007 22:51:59 +0000 (22:51 +0000)]
ChangeLogs use tabs, not spaces.

17 years ago2007-04-19 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 19 Apr 2007 22:47:50 +0000 (22:47 +0000)]
2007-04-19  Max Bowsher  <maxb1@ukf.net>

* Makefile.am: Make inilint use same warnonly-inilex workaround that
setup already does.

17 years ago2007-03-29 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Fri, 30 Mar 2007 22:18:34 +0000 (22:18 +0000)]
2007-03-29  Igor Peshansky  <pechtcha@cs.nyu.edu>

* LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
the message box.
* resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
control ids.
* res.rc (IDD_DESKTOP): Change the caption.  Add status information.
* desktop.h (DesktopSetupPage::DesktopSetupPage): Define constructor
in the implementation.
* desktop.cc (DesktopControlsInfo): Position specifiers for status
information items.
(DesktopSetupPage::DesktopSetupPage): Register position specifiers.
(set_status): New static method.
(load_dialog): Set status information, if available.
(DesktopSetupPage::OnInit): Set status header font.

17 years ago2007-03-01 Brian Dessent <brian@dessent.net>
Brian Dessent [Thu, 1 Mar 2007 18:22:37 +0000 (18:22 +0000)]
2007-03-01  Brian Dessent  <brian@dessent.net>

* ini.h (SETUP_INI_FILENAME): Rename setup_9x.ini to setup_legacy.ini.
(SETUP_BZ2_FILENAME): Likewise.

17 years ago2007-02-27 Brian Dessent <brian@dessent.net>
Brian Dessent [Wed, 28 Feb 2007 00:55:04 +0000 (00:55 +0000)]
2007-02-27  Brian Dessent  <brian@dessent.net>

* ini.h (SETUP_INI_FILENAME): Add define.
(SETUP_BZ2_FILENAME): Add define.
* IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use
above macros to parameterize setup.ini filename.
* fromcwd.cc (SetupFindVisitor::visitFile): Ditto.
* ini.cc (do_remote_ini): Ditto.
* Makefile.am (setup_SOURCES): Add win32.cc.
* autoload.c: Include windows.h directly instead of win32.h so that
win32.h can contain C++.
* desktop.cc (verinfo): Delete.
(make_link): Use IsWindowsNT to check for NT instead of verinfo.
(DesktopSetupPage::OnInit): Likewise.
* mount.cc (is_admin): Likewise.
* script.cc (init_run_script): Likewise.
* main.cc (class SIDWrapper, SIDWrapper::SIDWrapper,
SIDWrapper::~SIDWrapper, SIDWrapper::theSID, class HANDLEWrapper,
HANDLEWrapper::HANDLEWrapper, HANDLEWrapper::~HANDLEWrapper,
HANDLEWrapper::theHANDLE, class TokenGroupCollection,
TokenGroupCollection::TokenGroupCollection,
TokenGroupCollection::~TokenGroupCollection,
TokenGroupCollection::populate, TokenGroupCollection::find,
class NTSecurity, set_default_sec, NTSecurity::NoteFailedAPI,
NTSecurity::NTSecurity, NTSecurity::failed,
NTSecurity::initialiseEveryOneSID, NTSecurity::setDefaultDACL,
NTSecurity::setDefaultSecurity): Remove implementation of these
classes from this file and into new file win32.cc and existing win32.h.
(main): Fix whitespace and formatting per GNU coding standards.
* res.rc (IDS_SETUPINI_MISSING): Parameterize filename with %s.
* win32.cc: New file containing methods removed from main.cc as well
as new class VersionInfo methods.
* win32.h: Include <string> for std::string.
(class SIDWrapper, class HANDLEWrapper, class TokenGroupCollection,
class NTSecurity): Add classes removed from main.cc.
(class VersionInfo): Add new class.
(GetVer): Declare.
(IsWindowsNT): Define.

17 years ago2007-02-20 Brian Dessent <brian@dessent.net>
Brian Dessent [Wed, 21 Feb 2007 07:05:18 +0000 (07:05 +0000)]
2007-02-20  Brian Dessent  <brian@dessent.net>

* README: Modernize list of required packages, and mention doconfigure.

17 years ago2007-02-17 Cesar Strauss <cstrauss@cea.inpe.br>
Brian Dessent [Sat, 17 Feb 2007 14:41:10 +0000 (14:41 +0000)]
2007-02-17  Cesar Strauss  <cstrauss@cea.inpe.br>

        * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
        Initialize the version and operator fields of the newly created
        PackageSpecification object, so setup can pick the correct source
        version later on.

17 years ago2007-02-17 Brian Dessent <brian@dessent.net>
Brian Dessent [Sat, 17 Feb 2007 14:30:32 +0000 (14:30 +0000)]
2007-02-17  Brian Dessent  <brian@dessent.net>

* script.cc (Script::run): Check for existance of script file and
return without doing anything if it does not exist.

17 years ago2006-12-26 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Tue, 26 Dec 2006 21:50:33 +0000 (21:50 +0000)]
2006-12-26  Max Bowsher  <maxb1@ukf.net>

* IniDBBuilder.h (IniDBBuilder): Make this class abstract.
* IniDBBuilder.cc: Delete file.
* Makefile.am (inilint_SOURCES, setup_SOURCES): Remove IniDBBuilder.cc.

17 years ago* ChangeLog: Remove spurious beginning-of-line spaces, to assist editors
Max Bowsher [Tue, 26 Dec 2006 16:07:54 +0000 (16:07 +0000)]
* ChangeLog: Remove spurious beginning-of-line spaces, to assist editors
    configured to autodetect spaces-vs-tabs.

17 years ago2006-12-26 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Tue, 26 Dec 2006 16:03:19 +0000 (16:03 +0000)]
2006-12-26  Max Bowsher  <maxb1@ukf.net>

Add a shell script that documents/centralizes the standard configure
command line.

* doconfigure: New file.
* Makefile.am (EXTRA_DIST): Add doconfigure.

17 years ago2006-11-28 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Wed, 29 Nov 2006 02:07:17 +0000 (02:07 +0000)]
2006-11-28  Igor Peshansky  <pechtcha@cs.nyu.edu>

* install.cc (Installer::installOne): If file is in use, ask the user
to stop processes and retry.
(MB_RETRYCONTINUE, IDCONTINUE): New macros.
(hMsgBoxHook): New static field.
(CBTProc): New window hook function.
(_custom_MessageBox): New function.
* CHANGES: Update with the above.

18 years ago2006-10-12 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Fri, 13 Oct 2006 01:54:11 +0000 (01:54 +0000)]
2006-10-12  Igor Peshansky  <pechtcha@cs.nyu.edu>

* desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.

18 years ago * package_version.cc (packageversion::scan): Catch and handle
Brian Dessent [Sun, 6 Aug 2006 22:22:39 +0000 (22:22 +0000)]
* package_version.cc (packageversion::scan): Catch and handle
validation exception.

18 years ago * cygpackage.h (filesize): Remove unused field.
Brian Dessent [Sun, 6 Aug 2006 22:09:26 +0000 (22:09 +0000)]
* cygpackage.h (filesize): Remove unused field.
(cygpackage::createInstance): Ditto.
* cygpackage.cc (cygpackage::createInstance): Ditto.
* package_db.cc (packagedb::packagedb): Remove unused variables.
Simplify parsing of installed.db.

18 years ago * desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.
Brian Dessent [Sun, 6 Aug 2006 21:39:28 +0000 (21:39 +0000)]
* desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.

18 years ago* CHANGES: Update.
Max Bowsher [Tue, 13 Jun 2006 14:00:23 +0000 (14:00 +0000)]
* CHANGES: Update.

18 years ago2006-05-24 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Wed, 24 May 2006 13:01:34 +0000 (13:01 +0000)]
2006-05-24  Igor Peshansky  <pechtcha@cs.nyu.edu>

* PickPackageLine.h (PickPackageLine::DrawIcon): Move to PickView.
* PickView.h (PickView::DrawIcon): Move from PickPackageLine.
(PickView::icon_dc,PickView::bm_icon): New instance field.
(PickView::rect_icon,PickView::bg_fg_brush): Ditto.
* PickCategoryLine.cc (PickCategoryLine::paint): Use
PickView::DrawIcon() instead of BitBlt().
* PickPackageLine.cc (PickPackageLine::DrawIcon): Move to PickView.
(PickPackageLine::paint): Use PickView::DrawIcon().
* PickView.cc (PickView::~PickView): Delete GDI objects.
(PickView::init): Create icon drawing context.
(PickView::DrawIcon): New function.  Use system default colors to
draw bitmaps.
(PickView::paint): Set background color instead of using transparent
mode.  Create system-colored brush.

18 years ago * COPYING: New file (GPL).
Brian Dessent [Wed, 26 Apr 2006 03:45:30 +0000 (03:45 +0000)]
* COPYING: New file (GPL).
* Makfile.am (EXTRA_DIST): Add COPYING.

18 years ago2006-04-17 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Mon, 17 Apr 2006 17:01:52 +0000 (17:01 +0000)]
2006-04-17  Max Bowsher  <maxb1@ukf.net>

* String++.cc, String++.h: Finally, it's time for the long-awaited
departure of 'class String' from this world. setup.exe can now
happily claim to follow the sane path of using just one general
purpose string class throughout :-)

18 years ago2006-04-17 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Mon, 17 Apr 2006 16:41:33 +0000 (16:41 +0000)]
2006-04-17  Max Bowsher  <maxb1@ukf.net>

* cygpackage.cc, cygpackage.h, package_version.cc, package_version.h:
Do some String to std::string migration.

18 years ago2006-04-17 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Mon, 17 Apr 2006 16:13:17 +0000 (16:13 +0000)]
2006-04-17  Max Bowsher  <maxb1@ukf.net>

* package_meta.cc, package_meta.h, package_source.cc,
package_source.h: Do some String to std::string migration.
* package_db.cc: Small tweak to assist with the above.

18 years ago2006-04-17 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Mon, 17 Apr 2006 15:40:11 +0000 (15:40 +0000)]
2006-04-17  Max Bowsher  <maxb1@ukf.net>

* PickView.cc, PickView.h, package_db.cc, package_db.h:
Do some String to std::string migration.
* package_meta.h: Change a couple of types to assist with the above.

18 years ago2006-04-17 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sun, 16 Apr 2006 23:07:44 +0000 (23:07 +0000)]
2006-04-17  Max Bowsher  <maxb1@ukf.net>

* IniDBBuilder.cc, IniDBBuilder.h, IniDBBuilderPackage.cc,
IniDBBuilderPackage.h, PickLine.h, PickPackageLine.cc:
Do some String to std::string migration.

18 years ago2006-04-16 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sun, 16 Apr 2006 22:26:44 +0000 (22:26 +0000)]
2006-04-16  Max Bowsher  <maxb1@ukf.net>

* FindVisitor.cc, FindVisitor.h, IniParseFindVisitor.cc,
IniParseFindVisitor.h, ScanFindVisitor.cc, ScanFindVisitor.h, find.cc,
find.h, fromcwd.cc, ini.cc, ini.h, iniparse.y, postinstall.cc:
Do some String to std::string migration.

18 years ago2006-04-16 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sun, 16 Apr 2006 21:35:57 +0000 (21:35 +0000)]
2006-04-16  Max Bowsher  <maxb1@ukf.net>

* IOStreamProvider.h, archive.cc, archive.h, archive_tar.cc,
archive_tar.h, io_stream.cc, io_stream.h, io_stream_cygfile.cc,
io_stream_cygfile.h, io_stream_file.cc, io_stream_file.h:
Do some String to std::string migration.

18 years ago2006-04-16 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sun, 16 Apr 2006 15:37:49 +0000 (15:37 +0000)]
2006-04-16  Max Bowsher  <maxb1@ukf.net>

* desktop.cc, download.cc, install.cc, mount.cc, mount.h, script.cc,
script.h: Do some String to std::string migration.

18 years ago2006-04-16 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sun, 16 Apr 2006 12:30:07 +0000 (12:30 +0000)]
2006-04-16  Max Bowsher  <maxb1@ukf.net>

* category.cc: Remove source file that contained no code!
* category.h: Delete, moving the single useful line to...
* package_meta.h: ...here. Remove category.h include.
* choose.cc, package_db.h, package_meta.cc: Remove category.h include.
* Makefile.am: Remove references to removed files.

18 years ago2006-04-15 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sat, 15 Apr 2006 21:21:25 +0000 (21:21 +0000)]
2006-04-15  Max Bowsher  <maxb1@ukf.net>

* ConnectionSetting.cc, ConnectionSetting.h, Exception.cc,
Exception.h, IniParseFeedback.cc, IniParseFeedback.h, LogFile.cc,
LogFile.h, LogSingleton.h, PackageSpecification.cc,
PackageSpecification.h, SourceSetting.cc, SourceSetting.h,
UserSettings.cc, UserSettings.h, dialog.cc, dialog.h, diskfull.cc,
diskfull.h, filemanip.cc, filemanip.h, inilintmain.cc, localdir.cc,
main.cc, nio-file.cc, nio-http.cc, prereq.cc, prereq.h, proppage.cc,
proppage.h, site.cc, site.h, splash.cc, state.cc, state.h, window.cc,
window.h: Do some String to std::string migration.

18 years ago2006-04-15 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Sat, 15 Apr 2006 17:00:14 +0000 (17:00 +0000)]
2006-04-15  Max Bowsher  <maxb1@ukf.net>

* String++.cc, String++.h
(new_cstr_char_array, format_1000s): Migrate String to std::string.
(casecompare_lt_op, std::string operator+): New.

18 years ago2006-04-06 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 6 Apr 2006 16:45:19 +0000 (16:45 +0000)]
2006-04-06  Max Bowsher  <maxb1@ukf.net>

* String++.h, String++.cc
(String::replace): Remove - usused.
(String::find): Remove - semantics do not match std::string.

* root.cc (directory_is_rootdir): Switch to std::string.find().
* script.cc (Script::baseName): Rewrite use of String.find().

18 years ago2006-03-30 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 30 Mar 2006 22:55:55 +0000 (22:55 +0000)]
2006-03-30  Max Bowsher  <maxb1@ukf.net>

* String++.cc (replace): New function to take the place of one form
of String::replace method.
* String++.h (replace): Declare.
(String::replace): Make private.

* desktop.cc (make_cygwin_bat): Use new function.
* filemanip.cc (backslash): Use simple loop in place of
String::replace.
* filemanip.h (backslash): Change signature to use std::string in
place of String.

18 years ago2006-03-30 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 30 Mar 2006 21:25:51 +0000 (21:25 +0000)]
2006-03-30  Max Bowsher  <maxb1@ukf.net>

* String++.cc, String++.h (casecompare): New function replacing
String.casecompare to increase parity with std::string.
(String::casecompare): Make private.

* ConnectionSetting.cc, IniDBBuilderPackage.cc,
IniParseFindVisitor.cc, LogFile.cc, PackageSpecification.cc,
PickView.cc, SourceSetting.cc, String++.cc, String++.h, fromcwd.cc,
io_stream.cc, mount.cc, package_db.cc, package_source.h,
package_version.cc, prereq.h, script.cc:
Use casecompare in place of String::casecompare.

18 years ago2006-03-30 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 30 Mar 2006 20:30:50 +0000 (20:30 +0000)]
2006-03-30  Max Bowsher  <maxb1@ukf.net>

* String++.cc, String++.h: Remove String(int) constructor, which
was causing dangerously bizarre implicit conversions, and was a point
of disparity between String and std::string.
(stringify): New function to replace functionality removed above.

* PickView.cc (PickView::init_headers),
archive_tar.cc (archive_tar::next_file_name),
cygpackage.cc (cygpackage::setCanonicalVersion):
Make explicit and call out with a FIXME some bizarre behaviour.

* ScanFindVisitor.cc (ScanFindVisitor::visitFile),
filemanip.cc (base), iniparse.y,
threebar.cc (ThreeBarProgressPage::SetBar2):
Make simple adaptations to the changed API.

18 years ago2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Tue, 14 Mar 2006 17:11:25 +0000 (17:11 +0000)]
2006-03-14  Igor Peshansky  <pechtcha@cs.nyu.edu>

* PickView.cc (PickView::setViewMode): Auto-expand category if
its name starts with a dot.

18 years ago2006-03-14 Dave Korn <dave.korn@artimi.com>
Dave Korn [Tue, 14 Mar 2006 16:28:37 +0000 (16:28 +0000)]
2006-03-14  Dave Korn  <dave.korn@artimi.com>

* String++.cc (new_cstr_char_array):  Handle null input correctly.

18 years agofix typo
Christopher Faylor [Fri, 10 Mar 2006 18:56:43 +0000 (18:56 +0000)]
fix typo

18 years ago* res.rc: Update copyright.
Christopher Faylor [Fri, 10 Mar 2006 17:18:20 +0000 (17:18 +0000)]
* res.rc: Update copyright.
(IDS_MIRROR_LST): Use cygwin.com for mirror list, not sources.redhat.com.
(NOSAVE2): sourceware.cygnus.com -> sources.redhat.com
* site.cc (NOSAVE1): Use preferred name of sourceware site.
(NOSAVE1_LEN): Use just-defined name to determine length.
(NOSAVE2_LEN): Ditto.
(NOSAVE3_LEN): Ditto.
* res.rc (IDD_DROPPED): New dialog.
* resource.h (IDD_DROPPED): New dialog-id.
(IDC_DROP_MIRRORS, IDC_DROP_NOWARN): New control-ids.
* site.cc: Add enum for response on dropped mirrors.
(cache_is_usable, cache_needs_writing): New bools.
(cache_warn_urls): New string.
(cached_site-list, dropped_site_list): New SiteLists.
(site_list_type::init, site_list_type::site_list_type): Change to four
parameter form.
(site_list_type::site_list_type, site_list_type::operator=) Copy servername,
area and location.
(load_site_list): New function, broken out of get_site_list.  Support
four-parameter site_list_type.
(get_site_list): Break out load_site_list.  Move reading cache earlier.  Don't
write new cache.  Set flags to record cache state.  Load both all_site_list and
cached_site_list.
(SiteSetting::registerSavedSite): Use four-parameter site_list_type.
(drop_proc, check_dropped_mirrors, write_cache_list, save_cache_file): New
functions.
(SitePage::OnNext): Check for dropped mirrors and save cache as appropriate.
(SitePage::OnMessageCmd): Use four-parameter site_list_type.
* site.h
(site_list_type::init, site_list_type::site_list_type): Change to four
parameter form.
(site_list_type): Add servername, area and location members.

18 years ago2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
Igor Peshansky [Fri, 10 Mar 2006 00:02:33 +0000 (00:02 +0000)]
2006-03-09  Igor Peshansky  <pechtcha@cs.nyu.edu>

* script.cc (Script::run): Fix inverted test for abnormal exit.

18 years ago* CHANGES: Update.
Max Bowsher [Thu, 9 Mar 2006 12:27:16 +0000 (12:27 +0000)]
* CHANGES: Update.

18 years ago2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
Max Bowsher [Thu, 9 Mar 2006 12:26:16 +0000 (12:26 +0000)]
2006-03-09  Bas van Gompel  <patch-cygsup.buzz@bavag.tmfweb.nl>
    Max Bowsher  <maxb1@ukf.net>

Provide indication of site that a file is being downloaded from.

* geturl.cc: Use std::string instead of String throughout.
(init_dialog): Put more information into GUI.
Remove unused 'owner' parameter and change all callers.
(progress): Remove spurious \n characters from GUI.
* geturl.h: Use std::string instead of String throughout.
* res.rc (IDD_INSTATUS): Use SS_ENDELLIPSIS.

18 years ago2006-03-09 Max Bowsher <maxb1@ukf.net>
Max Bowsher [Thu, 9 Mar 2006 10:37:05 +0000 (10:37 +0000)]
2006-03-09  Max Bowsher  <maxb1@ukf.net>

* Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.

18 years ago 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
Dave Korn [Fri, 20 Jan 2006 15:12:15 +0000 (15:12 +0000)]
2006-01-20  Bryan Thrall  <bryan.thrall@flightsafety.com>

* source.cc (SourcePage::OnActivate): Command line takes precedence
over last user selection.

This page took 0.06853 seconds and 5 git commands to generate.