]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
13 years ago * res.rc: Remove Prev button from chooser page.
Andy Koppe [Wed, 20 Jul 2011 19:26:08 +0000 (19:26 +0000)]
* res.rc: Remove Prev button from chooser page.
* resource.h: Reflect removal of Prev button.
* package_meta.h (trustp): Ditto.
* choose.cc: Ditto.

13 years ago2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 29 Apr 2011 12:43:59 +0000 (12:43 +0000)]
2011-04-24  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * download.cc (do_download_thread): Update progress display
        when download phase starts

13 years ago2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 29 Apr 2011 12:42:47 +0000 (12:42 +0000)]
2011-04-24  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * install.cc (do_install_thread): Report overall progress while
        md5summing packages.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 24 Apr 2011 11:19:48 +0000 (11:19 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * archive_tar_file.cc (read): Handle short reads

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 24 Apr 2011 11:18:50 +0000 (11:18 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * compress_bz.h (compress): Remove unused bufN member.
        * compress_bz.cc (read): Handle bzip2 files containing multiple
        streams

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:42:15 +0000 (09:42 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * install.cc (extract_replace_on_reboot): New function containg code
        extracted from...
        (installOne): Report read errors differently to write errors
        * archive.cc (extract_file): Distinguish read errors from write errors

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:31:37 +0000 (09:31 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * io_stream.cc (copy): Propagate errors.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:30:20 +0000 (09:30 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * compress_bz.cc (read, peek): Consistently return -1 and set lasterr
        on an error.
        * compress_gz.cc (read, write, peek): Ditto.

13 years ago2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 21 Apr 2011 09:29:07 +0000 (09:29 +0000)]
2011-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * archive_tar_file.cc (read, write, peek, seek): Consistently return -1
        and set lasterr on an error.

13 years ago * crypto.c (ExtraKeyOption): Correct option description.
Jon TURNEY [Mon, 3 Jan 2011 16:18:33 +0000 (16:18 +0000)]
    * crypto.c (ExtraKeyOption): Correct option description.

13 years ago * prereq.cc (OnNext, whatNext, OnUnattended): Fix PrereqPage::OnUnattended()
Jon TURNEY [Thu, 16 Dec 2010 17:48:43 +0000 (17:48 +0000)]
* prereq.cc (OnNext, whatNext, OnUnattended): Fix PrereqPage::OnUnattended()
so PrereqPage behaves correctly in unattended modes.
* prereq.h (PrereqPage): Ditto
* proppage.cc (DialogProc): Update comment to clarify meaning of
OnUnattended() returning 0.

13 years ago * site.cc (init): Canonicalize mirror URLs to ensure the end
Jon TURNEY [Fri, 10 Dec 2010 18:57:05 +0000 (18:57 +0000)]
    * site.cc (init): Canonicalize mirror URLs to ensure the end
        with a '/'.

13 years agoChange package_db collection of packages from vector to a map so we can look things...
Jon TURNEY [Fri, 26 Nov 2010 14:21:43 +0000 (14:21 +0000)]
Change package_db collection of packages from vector to a map so we can look things up in it quickly

This allows packagedb::findBinary() and packagedb::findSource() to be re-written to locate packages
by name rather than searching the entire set, which makes a big difference to total execution time.

        * IniDBBuilderPackage.cc (IniDBBuilderPackage): Remove db.packages vector
        sorting.
        (buildPackage, buildPackageSource): Change package collection from vector
        to map.
        * PickView.cc (setViewMode, init_headers, defaultTrust): Ditto.
        * choose.cc (createListview, logResults, keepClicked)
        (changeTrust): Ditto
        * install.cc (do_install_thread): Ditto
        * download.cc (do_download_thread): Ditto
        * prereq.cc (isMet): Ditto
        * package_meta.cc (ScanDownloadedFiles): Ditto
        * package_db.h (packagedb): Ditto
        * package_db.cc (packagedb, flush, markUnVisited, setExistence)
        (fillMissingCategory): Ditto
        (findBinary, findSource): Rewrite to locate packages in map rather than
        searching the whole vector, for performance.
        (ConnectedLoopFinder, doIt, visit): Rewrite to refer to package using a
        packagemeta *, as an index into the vector of packages can no longer be
        used.

13 years ago * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-cygwin
Corinna Vinschen [Fri, 26 Nov 2010 08:36:24 +0000 (08:36 +0000)]
* package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-cygwin
dependency setting.  Fix comment.

13 years ago * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-passwd
Corinna Vinschen [Tue, 23 Nov 2010 12:03:24 +0000 (12:03 +0000)]
* package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-passwd
dependency setting.  Fix condition for base-cygwin string check.

13 years ago * package_meta.h (packagemeta): Remove unused member variables for
Jon TURNEY [Mon, 22 Nov 2010 12:53:06 +0000 (12:53 +0000)]
    * package_meta.h (packagemeta): Remove unused member variables for
        storing timestamp of the setup.ini that package version came from.
        * package_meta.cc (packagemeta): Ditto.

13 years ago * package_version.h (packageversion): Add compareVersion() utility
Jon TURNEY [Mon, 22 Nov 2010 12:49:50 +0000 (12:49 +0000)]
    * package_version.h (packageversion): Add compareVersion() utility
        function.
        * package_version.cc (Vendor_version, Package_version)
        (compareVersions): Implement the Vendor_version() and Package_version()
        accessor functions.  Add compareVersions() utility function.
        * cygpackage.cc (setCanonicalVersion): Fix to extract vendor version
        correctly.
        * IniDBBuilderPackage.cc (add_correct_version): When multiple setup.ini's
        offer different packages for the same stability level, use the package with
        the highest version number rather than the package coming from the setup.ini
        with the latest timestamp.

13 years ago * choose.cc (OnNext): Remove PrereqChecker call, instead use new
Jon TURNEY [Sat, 20 Nov 2010 13:15:50 +0000 (13:15 +0000)]
    * choose.cc (OnNext): Remove PrereqChecker call, instead use new
        WM_APP_PREREQ_CHECK state of Progress dialog.
        * threebar.h (WM_APP_PREREQ_CHECK)
        (WM_APP_PREREQ_CHECK_THREAD_COMPLETE): Add new messages.
        * threebar.cc (OnActivate, OnMessageApp): Use single bar mode for
        WM_APP_PREREQ_CHECK state.  Handle new messages.
        * dialog.h (do_prereq_check_thread): Add prototype.
        * prereq.cc (isMet, do_prereq_check_thread)
        (do_prereq_check_reflector, do_prereq_check): Add progress reporting
        during isMet, and thread containing moved PrereqChecker code.

13 years ago * package_meta.cc (set_action): Always set the binary tick box
Jon TURNEY [Sat, 20 Nov 2010 13:06:08 +0000 (13:06 +0000)]
    * package_meta.cc (set_action): Always set the binary tick box
        when selecting a specific version (if binary is available)

13 years ago * postinstall.cc (do_postinstall_thread): Refer to "Unknown package"
Jon TURNEY [Sat, 20 Nov 2010 13:03:58 +0000 (13:03 +0000)]
    * postinstall.cc (do_postinstall_thread): Refer to "Unknown package"
        rather than "No package"

13 years agoThroughout, change all occurrences of "PostMessage" to PostMessageNow. This
Christopher Faylor [Fri, 19 Nov 2010 15:49:54 +0000 (15:49 +0000)]
Throughout, change all occurrences of "PostMessage" to PostMessageNow.  This
works around problem where w32api uses a #define which calls the Windows API
version of PostMessage directly, confusing g++ 3.4.4.

13 years ago * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
Jon TURNEY [Wed, 10 Nov 2010 20:25:27 +0000 (20:25 +0000)]
    * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
        window

13 years ago * ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
Jon TURNEY [Wed, 10 Nov 2010 20:23:43 +0000 (20:23 +0000)]
    * ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
        Update all the text in the progress dialog whilst parsing .ini file,
        not just the top line.

13 years ago * choose.cc (OnBack): Move PlaceDialog(false) so window is resized in
Jon TURNEY [Wed, 10 Nov 2010 20:22:10 +0000 (20:22 +0000)]
    * choose.cc (OnBack): Move PlaceDialog(false) so window is resized in
        'Install from Local Directory' mode as well.

13 years ago * res.rc (IDD_NET): Make text referring to IE5 more general
Jon TURNEY [Wed, 10 Nov 2010 20:20:33 +0000 (20:20 +0000)]
    * res.rc (IDD_NET): Make text referring to IE5 more general

13 years ago * compress_bz.h (compress): Add endReached flag.
Jon TURNEY [Fri, 5 Nov 2010 22:53:23 +0000 (22:53 +0000)]
    * compress_bz.h (compress): Add endReached flag.
        * compress_bz.cc (read, compress_bz): Use endReached flag to return 0
        for a read when EOF has been reached, after BZ2_bzDecompress returns
        BZ_STREAM_END, rather than continue to try to call BZ2_bzDecompress
        beyond the end of the compressed data, generating a BZ_SEQUENCE_ERROR.
        * ini.cc (do_remote_ini): Now that bz2_stream doesn't always have a
        spurious error, detect and report if an error occurred decompressing.

13 years ago * propsheet.cc (PropSheet::SetActivePage): Remove :: from call to
Corinna Vinschen [Mon, 13 Sep 2010 11:56:43 +0000 (11:56 +0000)]
* propsheet.cc (PropSheet::SetActivePage): Remove :: from call to
PropSheet_SetCurSel.
(PropSheet::SetActivePageByID): Remove :: from call to
PropSheet_SetCurSelByID.
(PropSheet::SetButtons): Remove :: from call to PropSheet_SetWizButtons.
(PropSheet::PressButton): Remove :: from call to PropSheet_PressButton.

13 years ago* postinstall.cc: Add #include <algorithm> to fix build with gcc-4.x.
Yaakov Selkowitz [Tue, 7 Sep 2010 19:40:17 +0000 (19:40 +0000)]
* postinstall.cc: Add #include <algorithm> to fix build with gcc-4.x.

14 years ago2010-08-29 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 29 Aug 2010 10:08:56 +0000 (10:08 +0000)]
2010-08-29  Jon TURNEY <jon.turney@dronecode.org.uk>

* postinstall.cc (do_postinstall_thread): Don't run postinstall
scripts belonging to a just installed package twice.
* script.h (Script): Add operator ==

14 years ago2010-08-29 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 29 Aug 2010 10:08:34 +0000 (10:08 +0000)]
2010-08-29  Jon TURNEY <jon.turney@dronecode.org.uk>

* postinstall.cc (do_postinstall_thread): Don't run postinstall
scripts belonging to a just installed package twice.

14 years ago2010-08-29 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Sun, 29 Aug 2010 10:08:16 +0000 (10:08 +0000)]
2010-08-29  Jon TURNEY <jon.turney@dronecode.org.uk>

* script.h (Script): Add operator ==

14 years agofix minor typo
Christopher Faylor [Fri, 27 Aug 2010 16:10:47 +0000 (16:10 +0000)]
fix minor typo

14 years ago * script.cc (init_run_script): Set CYGWINFORALL="-A" for
Andy Koppe [Wed, 25 Aug 2010 17:12:37 +0000 (17:12 +0000)]
* script.cc (init_run_script): Set CYGWINFORALL="-A" for
postinstall/preremove scripts when installing for all users.

14 years ago * package_meta.h (packagemeta::trustp): Update non-experimental
Andy Koppe [Thu, 19 Aug 2010 06:18:07 +0000 (06:18 +0000)]
* package_meta.h (packagemeta::trustp): Update non-experimental
packages too when Exp is selected.

14 years ago * res.rc (IDD_PREREQ): Say "Resolving Dependencies" instead of
Andy Koppe [Wed, 18 Aug 2010 17:03:17 +0000 (17:03 +0000)]
* res.rc (IDD_PREREQ): Say "Resolving Dependencies" instead of
"Unmet Dependencies found"
* prereq.cc (PrereqPage::OnNext): Tone down message box about
missing dependencies.

14 years ago * postinstall.cc (PostInstallResultsPage::OnNext):
Andy Koppe [Sun, 15 Aug 2010 16:22:00 +0000 (16:22 +0000)]
    * postinstall.cc (PostInstallResultsPage::OnNext):
        Remove postinstall script error message box.
        * res.rc (IDS_POSTINSTALL): Try to make postinstall errors
        less scary.

14 years ago* bootstrap.sh: Allow running from a builddir. Run configure
Yaakov Selkowitz [Wed, 11 Aug 2010 22:58:51 +0000 (22:58 +0000)]
* bootstrap.sh: Allow running from a builddir. Run configure
unless NOCONFIGURE is defined.
* doconfigure: Remove.
* Makefile.am (EXTRA_DIST): Remove doconfigure.
* README: Document that bootstrap.sh runs configure.
Remove reference to doconfigure.

14 years ago* configure.in: Check for prerequisites' headers.
Yaakov Selkowitz [Wed, 11 Aug 2010 08:19:46 +0000 (08:19 +0000)]
* configure.in: Check for prerequisites' headers.
* Makefile.am: Remove libinilex.a library, instead...
(inilint_SOURCES): Add inilex.ll. (setup_SOURCES): Ditto.
* inilex.ll: Use option nounput to avoid "defined but not used"
warning from yyunput().

14 years agoFix compatibility with GCC 4.x.
Yaakov Selkowitz [Tue, 10 Aug 2010 20:38:01 +0000 (20:38 +0000)]
Fix compatibility with GCC 4.x.
* Makefile.am (setup_LDFLAGS): Pass -static to compiler instead of
linker so that libgcc is statically linked as well.
(autoload.o): Disable optimization.
* localdir.cc (browse_cb): Fix "jump to case label crosses
initialization" error.
* mklink2.cc (sfli): Fix "non-local variable uses anonymous type"
warning.
* ntdll.h: Fix "redeclared without dllimport attribute: previous
dllimport ignored" warnings.
* package_message.h (display): Fix "'exit' was not declared in this
scope" error.

14 years ago* Makefile.am: Treat libgetopt++ as full-fledged SUBDIRS.
Yaakov Selkowitz [Tue, 10 Aug 2010 18:01:01 +0000 (18:01 +0000)]
* Makefile.am: Treat libgetopt++ as full-fledged SUBDIRS.
(setup_LDADD): Always link against included libgetopt++.

14 years ago * prereq.cc (PrereqChecker::getUnmetString): Improve dependency list
Corinna Vinschen [Sun, 8 Aug 2010 15:11:43 +0000 (15:11 +0000)]
* prereq.cc (PrereqChecker::getUnmetString): Improve dependency list
output.

14 years ago * prereq.cc (PrereqChecker::isMet): Find unmet indirect
Andy Koppe [Sat, 7 Aug 2010 12:46:59 +0000 (12:46 +0000)]
* prereq.cc (PrereqChecker::isMet): Find unmet indirect
dependencies too.

14 years ago * res.rc (IDS_VIEWBUTTON_TOOLTIP): Rename "Partial" view
Andy Koppe [Fri, 6 Aug 2010 18:56:12 +0000 (18:56 +0000)]
* res.rc (IDS_VIEWBUTTON_TOOLTIP): Rename "Partial" view
to "Pending" (again).

14 years ago * res.rc (IDD_PREREQ DIALOG): Tweak wording on dependency page.
Andy Koppe [Thu, 5 Aug 2010 19:02:34 +0000 (19:02 +0000)]
* res.rc (IDD_PREREQ DIALOG): Tweak wording on dependency page.

14 years agoFix formatting
Christopher Faylor [Tue, 3 Aug 2010 17:44:39 +0000 (17:44 +0000)]
Fix formatting

14 years ago * install.cc (Installer::installOne): Also record zero-sized
Dave Korn [Sat, 31 Jul 2010 06:29:32 +0000 (06:29 +0000)]
* install.cc (Installer::installOne): Also record zero-sized
tarballs as successfully installed.

14 years ago * postinstall.cc (do_postinstall_reflector): Fix typo
Jon TURNEY [Fri, 30 Jul 2010 20:55:58 +0000 (20:55 +0000)]
* postinstall.cc (do_postinstall_reflector): Fix typo

14 years ago* postinstall.cc (do_postinstall_reflector): Fix typo
Jon TURNEY [Fri, 30 Jul 2010 20:53:42 +0000 (20:53 +0000)]
* postinstall.cc (do_postinstall_reflector): Fix typo

14 years ago* inilex.ll: Allow "~" in a string.
Christopher Faylor [Fri, 30 Jul 2010 14:02:34 +0000 (14:02 +0000)]
* inilex.ll: Allow "~" in a string.

14 years ago * resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT): Add
Jon TURNEY [Thu, 29 Jul 2010 13:12:01 +0000 (13:12 +0000)]
    * resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT):  Add
resource identifiers for postinstall results page.
        * res.rc (IDD_POSTINSTALL): Add dialog resource for postinstall
results page.
        * postinstallresults.h: New file.
        * postinstallresults.cc: New file.
        * main.cc (main_display): Add a PostInstallResultsPage to the
        wizard.
        * Makefile.am (setup_SOURCES): Add new files.
        * threebar.cc (OnMessageApp): Allow WM_APP_POSTINSTALL_THREAD_COMPLETE
        to select the next page shown.
        * postinstall.cc (do_postinstall_thread)
        (do_postinstall_reflector): Collect results of running scripts
        and compose a reporting message which we pass to the postinstall
        results page.  Select postinstall results page next if there are
        results to show, otherwise desktop setup page as before.
        * script.cc (run): Don't rename as .done scripts which didn't run
        successfully.

14 years ago* script.cc (run): Don't rename as .done scripts which didn't run successfully.
Jon TURNEY [Thu, 29 Jul 2010 13:11:08 +0000 (13:11 +0000)]
* script.cc (run): Don't rename as .done scripts which didn't run successfully.

14 years ago* postinstall.cc (do_postinstall_thread)
Jon TURNEY [Thu, 29 Jul 2010 13:10:46 +0000 (13:10 +0000)]
* postinstall.cc (do_postinstall_thread)
(do_postinstall_reflector): Collect results of running scripts
and compose a reporting message which we pass to the postinstall
results page.  Select postinstall results page next if there are
results to show, otherwise desktop setup page as before.

14 years ago* threebar.cc (OnMessageApp): Allow WM_APP_POSTINSTALL_THREAD_COMPLETE to select...
Jon TURNEY [Thu, 29 Jul 2010 13:10:16 +0000 (13:10 +0000)]
* threebar.cc (OnMessageApp): Allow WM_APP_POSTINSTALL_THREAD_COMPLETE to select the next page shown.

14 years ago* Makefile.am (setup_SOURCES): Add new files.
Jon TURNEY [Thu, 29 Jul 2010 13:09:54 +0000 (13:09 +0000)]
* Makefile.am (setup_SOURCES): Add new files.

14 years ago* main.cc (main_display): Add a PostInstallResultsPage to the wizard.
Jon TURNEY [Thu, 29 Jul 2010 13:09:32 +0000 (13:09 +0000)]
* main.cc (main_display): Add a PostInstallResultsPage to the wizard.

14 years ago* postinstallresults.cc: New file for PostInstallResultsPage implementation
Jon TURNEY [Thu, 29 Jul 2010 13:09:04 +0000 (13:09 +0000)]
* postinstallresults.cc: New file for PostInstallResultsPage implementation

14 years ago* postinstallresults.h: New file for PostInstallResultsPage interface
Jon TURNEY [Thu, 29 Jul 2010 13:08:30 +0000 (13:08 +0000)]
* postinstallresults.h: New file for PostInstallResultsPage interface

14 years ago* res.rc (IDD_POSTINSTALL): Add dialog resource for postinstall results page.
Jon TURNEY [Thu, 29 Jul 2010 13:06:54 +0000 (13:06 +0000)]
* res.rc (IDD_POSTINSTALL): Add dialog resource for postinstall results page.

14 years ago* resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT): Add resource identifiers for...
Jon TURNEY [Thu, 29 Jul 2010 13:06:03 +0000 (13:06 +0000)]
* resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT):  Add resource identifiers for postinstall results page.

14 years ago * PickView.cc (PickView::views::caption): Rename "Partial" view
Andy Koppe [Mon, 26 Jul 2010 22:55:30 +0000 (22:55 +0000)]
* PickView.cc (PickView::views::caption): Rename "Partial" view
to "Pending".
* res.rc (IDS_VIEWBUTTON_TOOLTIP): Ditto.

14 years ago * PickPackageLine.cc (PickPackageLine::{click,set_action}):
Corinna Vinschen [Fri, 23 Jul 2010 10:21:54 +0000 (10:21 +0000)]
* PickPackageLine.cc (PickPackageLine::{click,set_action}):
Don't trigger automatic package selection when clicking on
packages or categories on chooser screen.
* PickCategoryLine.cc (PickCategoryLine::click): No more need to
prepare for automatic package selection with markUnVisited().
* res.rc: Drop "Warning!" from caption of Resolve Dependencies
screen.

14 years ago * root.cc (RootPage::OnNext): Don't construct a packagedb here nor
Dave Korn [Sat, 17 Apr 2010 12:36:46 +0000 (12:36 +0000)]
* root.cc (RootPage::OnNext): Don't construct a packagedb here nor
do deferred initialisation of static packagedb::task.
* source.cc (save_dialog): Don't construct a packagedb here, and
set static packagedb::task directly instead of chosen_db_task.
* package_meta.cc (packagemeta::action_caption): Don't bother to
construct a packagedb here, just access packagedb::task directly.
* package_db.cc: Move 'static members' comment near static members.
(chosen_db_task): Delete.
* package_db.h (chosen_db_task): Don't declare extern.
(packagedb): Extend comments on class.

14 years ago * PickView.cc (PickView::WindowProc): Delete inadvertently-committed
Dave Korn [Wed, 14 Apr 2010 02:37:35 +0000 (02:37 +0000)]
* PickView.cc (PickView::WindowProc): Delete inadvertently-committed
debug logging.

14 years ago * PickView.h (PickView::set_vscroll_info): Add prototype.
Dave Korn [Tue, 13 Apr 2010 17:49:11 +0000 (17:49 +0000)]
* PickView.h (PickView::set_vscroll_info): Add prototype.
(PickView::hasClientRect): Rename from this ...
(PickView::hasWindowRect): ... to this ...
(PickView::lastClientRect): ... and from this ...
(PickView::lastWindowRect): ... to this.
* PickView.cc (PickView::PickView): Adjust member init to match.
(PickView::set_vscroll_info): Abstract code to set vertical scroll
bar proportions from ...
(PickView::list_click): ... here.  Call it.  Fix comment typo.
(PickView::WindowProc): Update all renamed variables in WM_SIZE
case, and check also for a y delta, calling set_vscroll_info if so.

14 years ago * window.cc (Window::Window): Initialise BusyCount and BusyCursor.
Dave Korn [Tue, 13 Apr 2010 17:25:26 +0000 (17:25 +0000)]
* window.cc (Window::Window): Initialise BusyCount and BusyCursor.
(Window::SetBusy): Set hourglass cursor, counting nested activations.
(Window::ClearBusy): Cancel one call to SetBusy and restore original
cursor if no longer busy.
* window.h (Window::BusyCount): New data member.
(Window::OldCursor): Likewise.
(Window::BusyCursor): Likewise.
(Window::SetBusy): Prototype.
(Window::ClearBusy): Likewise.
* choose.cc (ChooserPage::createListview): Invoke busy cursor
around long-running operation.
(ChooserPage::OnInit): Likewise.
(ChooserPage::changeTrust): Likewise.
* PickCategoryLine.cc (PickCategoryLine::set_action): Likewise.

14 years ago* bootstrap.sh: Always reconfigure in libgetopt++.
Christopher Faylor [Thu, 8 Apr 2010 15:50:38 +0000 (15:50 +0000)]
* bootstrap.sh: Always reconfigure in libgetopt++.
* Makefile.am: Remove old code for direct copying to sourceware.  Add -src to
source tarball.

14 years ago2010-04-07 Matthias Andree <matthias.andree@gmx.de>
Corinna Vinschen [Wed, 7 Apr 2010 16:32:31 +0000 (16:32 +0000)]
2010-04-07  Matthias Andree  <matthias.andree@gmx.de>

* README (HOW TO BUILD): Mention mingw-lib{gcrypt,lzma}-devel.

* res.rc (IDD_DESKTOP): Move Installation Status line,
IDC_STATUS_HEADER and IDC_STATUS up 20 units, make IDC_STATUS text
20 units taller and 40 units wider so that IDS_REBOOT_REQUIRED
message fits the screen.
* res.rc (IDD_SPLASH): Bump copyright years in IDC_SLASH_COPYR to
"2000-2010".

14 years ago * install.cc (create_allow_protected_renames): New function to
Corinna Vinschen [Wed, 7 Apr 2010 11:40:02 +0000 (11:40 +0000)]
* install.cc (create_allow_protected_renames): New function to
create AllowProtectedRenames registry entry.
(Installer::installOne): Call create_allow_protected_renames if former
call to MoveFileEx was successful.

14 years ago Use external crypto libraries
Charles Wilson [Tue, 30 Mar 2010 23:55:19 +0000 (23:55 +0000)]
Use external crypto libraries
* Makefile.am: Remove local libgcrypt and libgpg-error
source directories from AM_CPPFLAGS.
* configure.ac: Remove libgcrypt and libgpg-error subdirs
from AC_CONFIG_SUBDIRS. Remove now-unnecessary cruft.
* doconfigure: Specify gcc-3 and g++-3. Set PATH when $build
is cygwin, so that correct (mingw) libgcrypt and libgpg-error
config scripts can be used.

libgpg-error/: Remove all.
libgcrypt/: Remove all.

14 years ago * autoload.cc (Auto): Create autoload code in an executable section
Corinna Vinschen [Wed, 17 Mar 2010 17:51:18 +0000 (17:51 +0000)]
* autoload.cc (Auto): Create autoload code in an executable section
called .autoload_text to avoid problems with DEP.

14 years agofix checkin history.
Christopher Faylor [Sun, 14 Mar 2010 19:09:56 +0000 (19:09 +0000)]
fix checkin history.

14 years ago* Makefile.am: Refresh to reflect Makefile.in changes.
Christopher Faylor [Sun, 14 Mar 2010 18:31:38 +0000 (18:31 +0000)]
* Makefile.am: Refresh to reflect Makefile.in changes.

14 years ago Support xz and lzma decompression via liblzma
Charles Wilson [Sun, 14 Mar 2010 17:45:18 +0000 (17:45 +0000)]
Support xz and lzma decompression via liblzma
* Makefile.am: Add -DLZMA_API_STATIC to AM_CPPFLAGS,
-lzma to setup_LDADD, and -static-libtool-libs to
setup_LDFLAGS. Update setup_SOURCES.
* compress.cc: Update includes.
(compress::decompress): Use compress_xz rather than
compress_lzma; compress_xz supports both xz and lzma
decompression.
* compress_xz.h: New.
* compress_xz.cc: New.
* compress_lzma.h: Removed.
* compress_lzma.cc: Removed.
* lzma-sdk/LzmaDec.c: Removed.
* lzma-sdk/LzmaDec.h: Removed.
* lzma-sdk/Types.h: Removed.

14 years ago * nio-ftp.c (read): Read RETR status code on EOF to avoid
Corinna Vinschen [Sat, 13 Mar 2010 11:11:21 +0000 (11:11 +0000)]
* nio-ftp.c (read): Read RETR status code on EOF to avoid
deadlock with PASV.

14 years ago* Makefile.in: Output the name of the generated src target.
Christopher Faylor [Mon, 1 Mar 2010 21:31:41 +0000 (21:31 +0000)]
* Makefile.in: Output the name of the generated src target.

14 years ago* Makefile.in: Add a setup-src target.
Christopher Faylor [Mon, 1 Mar 2010 21:26:09 +0000 (21:26 +0000)]
* Makefile.in: Add a setup-src target.

14 years ago * filemanip.cc (mklongpath): Skip "." and ".." path components to
Corinna Vinschen [Mon, 1 Mar 2010 15:18:39 +0000 (15:18 +0000)]
* filemanip.cc (mklongpath): Skip "." and ".." path components to
avoid error messages.

14 years ago * filemanip.cc (mklongpath): Simplify backslash folding.
Corinna Vinschen [Mon, 15 Feb 2010 17:51:56 +0000 (17:51 +0000)]
* filemanip.cc (mklongpath): Simplify backslash folding.

14 years ago * filemanip.cc (transform_chars): Drop function.
Corinna Vinschen [Mon, 15 Feb 2010 17:44:11 +0000 (17:44 +0000)]
* filemanip.cc (transform_chars): Drop function.
(mklongpath): Call mbrtowc in a loop rather than just mbstowcs.
Transform characters on the fly.  Fold multiple backslashes into one.
Drop trailing backslash.

14 years ago * choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
Dave Korn [Mon, 15 Feb 2010 00:45:01 +0000 (00:45 +0000)]
* choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
in fully-unattended mode, not chooser-only mode.
(ChooserPage::OnUnattended): Return appropriate status to run page
or not according to kind of unattended mode.
* choose.h (ChooserPage::OnUnattended): Remove inline implementation
and retain prototype only.
* main.cc (PackageManagerOption): New boolean option.
(main): Take it into account when setting unattended_mode.
* proppage.cc (PropertyPage::DialogProc): Use new enum type when
setting unattended_mode.
* state.cc (unattended_mode): Change from bool to enum attend_mode.
* state.h (enum attend_mode): Declare new enum type.
(unattended_mode): Update extern declaration to use it.

14 years ago * win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
Corinna Vinschen [Thu, 4 Feb 2010 16:57:36 +0000 (16:57 +0000)]
* win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
if is_legacy is set.
(NTSecurity::SetPosixPerms): Remove.
* win32.h (NTSecurity::GetPosixPerms): Remove declaration.

14 years ago * desktop.cc (make_link): Use 0 default permissions when creating files
Corinna Vinschen [Tue, 2 Feb 2010 17:28:10 +0000 (17:28 +0000)]
* desktop.cc (make_link): Use 0 default permissions when creating files
and directories.
* download.cc (download_one): Ditto.
* ini.cc (do_remote_ini): Ditto.
* localdir.cc (offer_to_create): Ditto.
* filemanip.cc (nt_wfopen): Use Windows default permissions if perms
is set to 0.
* mkdir.cc (mkdir_p): Ditto if mode is set to 0.

14 years ago* mount.cc (read_mounts_9x): Preserve old way of doing things when is_legacy.
Christopher Faylor [Fri, 29 Jan 2010 22:46:28 +0000 (22:46 +0000)]
* mount.cc (read_mounts_9x): Preserve old way of doing things when is_legacy.

14 years agoforced checkin
Christopher Faylor [Fri, 29 Jan 2010 15:00:55 +0000 (15:00 +0000)]
forced checkin

14 years ago* desktop.cc (make_link): Preserve old way of doing things when is_legacy.
Christopher Faylor [Thu, 28 Jan 2010 22:59:09 +0000 (22:59 +0000)]
* desktop.cc (make_link): Preserve old way of doing things when is_legacy.
(make_cygwin_bat): Ditto.
(save_icon): Ditto.
* mount.cc (read_mounts): Ditto.
(set_root_dir): Ditto.
* root.cc (load_dialog): Ditto.
(save_dialog): Ditto.
* install.cc (Installer::installOne): Don't install anything if there is no
canonical file associated with source.
(do_install_thread): Set up old-style registry entries if is_legacy rather than
just keying on whether this is Windows NT.
* io_stream_file.cc (io_stream_file::exists): Redefine "exists" to mean "it's a
file".

14 years ago* archive_tar.c (archive_tar_file::read): Always set read_something even for
Christopher Faylor [Sat, 16 Jan 2010 23:35:42 +0000 (23:35 +0000)]
* archive_tar.c (archive_tar_file::read): Always set read_something even for
zero-length files.

14 years ago* archive_tar.h (archive_tar_file::read_something): New member.
Christopher Faylor [Sat, 16 Jan 2010 19:51:48 +0000 (19:51 +0000)]
* archive_tar.h (archive_tar_file::read_something): New member.
* archive_tar_file.cc (archive_tar_file::archive_tar_file): Don't reset state
unless we've actually read something.
(archive_tar_file::read): Set read_something variable here to indicate that
we've read something from the tar file.

14 years ago* localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.
Christopher Faylor [Wed, 13 Jan 2010 15:56:48 +0000 (15:56 +0000)]
* localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.

14 years ago* main.cc (dyn_AttachConsole): Make static.
Christopher Faylor [Sun, 27 Dec 2009 17:46:25 +0000 (17:46 +0000)]
* main.cc (dyn_AttachConsole): Make static.
(dyn_GetLongPathName): New variable.
(set_dynaddr): New function.
(set_cout): Don't set dyn_AttachConsole here.
(set_legacy): Don't attempt to call function which does not exist in older
versions of NT.
(main): Call set_dynaddr to set dynamic load addresses.

14 years ago* ini.h: Use is_legacy to control setup.ini names.
Christopher Faylor [Tue, 22 Dec 2009 17:12:46 +0000 (17:12 +0000)]
* ini.h: Use is_legacy to control setup.ini names.
* main.cc (set_legacy): New function.
(main): Call set_legacy with program name to determine if this is supposed to
be an installation of the legacy version of cygwin.  Issue a warning on attempt
to install legacy on Windows NT class system.

14 years ago* package_message (packagemessage::display): Avoid displaying a message when in
Christopher Faylor [Tue, 22 Dec 2009 16:19:51 +0000 (16:19 +0000)]
* package_message (packagemessage::display): Avoid displaying a message when in
unattended mode.

14 years ago * win32.h (isdirsep): Define to replace local isslash definitions.
Corinna Vinschen [Tue, 22 Dec 2009 10:52:48 +0000 (10:52 +0000)]
* win32.h (isdirsep): Define to replace local isslash definitions.
* UserSettings.cc (UserSettings::open_settings): Remove isslash.
Use isdirsep instead of isslash.
* filemanip.cc (mklongpath): Ditto.
* root.cc (directory_is_rootdir): Ditto.
* localdir.cc (LocalDirSetting::save): Avoid consecutive backslashes
in setup log file paths.
* main.cc (main): Ditto.

14 years ago* choose.cc (ChooserPage::PlaceDialog): Put *correct* size in WINDOWPLACEMENT
Christopher Faylor [Tue, 22 Dec 2009 01:26:39 +0000 (01:26 +0000)]
* choose.cc (ChooserPage::PlaceDialog): Put *correct* size in WINDOWPLACEMENT
length field.

14 years ago Throughout, revert prototypes and methods set_mtime_and_mode to
Corinna Vinschen [Fri, 18 Dec 2009 11:59:54 +0000 (11:59 +0000)]
Throughout, revert prototypes and methods set_mtime_and_mode to
set_mtime and only care for the file timestamp.

Throughout, accommodate additional mode_t parameter in call to
io_stream::open.

* IOStreamProvider.h (IOStreamProvider::open): Add mode_t parameter.
* archive.cc (archive::extract_file): Reorder creation of in and tmp
to get the file mode from the tar archive earlier.  Call io_stream::open
with additional mode from tar archive.  Accommodate reversion to
set_mtime.
* filemanip.cc (nt_wfopen): Remove retry loop.  Instead initialize
OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
perms to create correct ACL on file creation.  Remove subsequent call
to nt_sec.SetPosixPerms.
* io_stream.cc (io_stream::open): Take additional mode_t parameter
and connect through to IOStreamProvider's open.
* io_stream.h (io_stream::open): Add mode_t parameter.
* io_stream_cygfile.cc (CygFileProvider::open): Ditto.
(io_stream_cygfile::io_stream_cygfile): Ditto.  Call nt_wfopen with
incoming mode_t parameter.  Make sure .exe and .dll files always
have execute permissions set.
(io_stream_cygfile::set_mtime): Remove retry loop and open file with
just GENERIC_WRITE access.
* io_stream_cygfile.h (io_stream_cygfile::io_stream_cygfile): Add mode_t
parameter.
* io_stream_file.cc (FileProvider::open): Ditto.
(io_stream_file::io_stream_file): Ditto.  Call nt_wfopen with incoming
mode_t parameter.
* io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
parameter.
* io_stream_memory.h (class io_stream_memory): Remove mode member.
Just return 0 from get_mode.
* mkdir.cc (mkdir_p): Remove retry loop.  Instead initialize
OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
perms to create correct ACL on file creation.  Remove subsequent call
to nt_sec.SetPosixPerms.
* mklink2.cc (mkcygsymlink_nt): Remove retry loop.  Instead initialize
SECURITY_ATTRIBUTES with matching POSIX perms to create correct ACL on
file creation.
* win32.cc (NTSecurity::GetPosixPerms): New function to generate
POSIX ACL.  Default to current owner and current primary group for
owner/group permissions.
(NTSecurity::SetPosixPerms): Let GetPosixPerms create the DACL.
(NTSecurity::setAdminGroup): Set groupSID to admins SID if successful.
(NTSecurity::setDefaultSecurity): Store user SID in ownerSID member.
Default groupSID to original primary group.
* win32.h (struct acl_t): Define here.
(class NTSecurity): Rename ownerSID and groupSID to cr_ownerSID and
cr_groupSID.  Change throughout.  Add members ownerSID and groupSID.
Declare new method GetPosixPerms.

14 years ago * filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
Corinna Vinschen [Thu, 17 Dec 2009 16:31:23 +0000 (16:31 +0000)]
* filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
WRITE_DAC access.
* mkdir.cc (mkdir_p): Ditto.

14 years ago * filemanip.cc (nt_wfopen): Fix requested access rights. Retry
Corinna Vinschen [Thu, 17 Dec 2009 16:08:23 +0000 (16:08 +0000)]
* filemanip.cc (nt_wfopen): Fix requested access rights.  Retry
without WRITE_DAC access on access denied.  Add comment.
* io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode): Ditto.
* mkdir.cc (mkdir_p): Ditto.
* mklink2.cc (mkcygsymlink_nt): Ditto.

14 years ago * localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
Corinna Vinschen [Thu, 17 Dec 2009 10:39:05 +0000 (10:39 +0000)]
* localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
since /var/log is a dir.

14 years ago * UserSettings.cc (UserSettings::open_settings): Never add more than
Corinna Vinschen [Wed, 16 Dec 2009 17:15:43 +0000 (17:15 +0000)]
* UserSettings.cc (UserSettings::open_settings): Never add more than
one slash.
* filemanip.cc (tfx_chars): Align to Cygwin's transformation table.
* localdir.cc (LocalDirSetting::save): Call mkdir_p with DOS path.

14 years ago* package_message.h: New file.
Christopher Faylor [Wed, 16 Dec 2009 16:11:24 +0000 (16:11 +0000)]
* package_message.h: New file.

14 years agoAdd missing file.
Christopher Faylor [Wed, 16 Dec 2009 16:10:29 +0000 (16:10 +0000)]
Add missing file.

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