delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/24/14:52:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Sat, 24 Apr 2010 13:52:01 -0500
Message-ID: <y2r845c0f81004241152rea49d25ejfeaf893cd056de28@mail.gmail.com>
Subject: autoupdate script
From: Rance Hall <ranceh AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thanks to comments from many on this list I've been working (slowly)
on a autoupdate script for cygwin.

I decided on three separate parts.

1) check setup version
2) check packages to be updated
3) update

My plan was to create a windows batch file that checked if a setup.exe
update was needed and to perform that function.
call a cygwin bash script to check packages and see if an update was
required, and actually run the update with the right command options.



steps 2 and 3 seem to work fine.  but checking the setup version
doesn't seem to be that easy.


a quick check of setup.exe --help does not show a -v option that would
output a version string that I could use in a string compare or other
test.

Seems the only way to check is to have a cygwin bash script wget the
setup from the web and checksum the temp copy and the standard copy to
see if they are the same, if not, replace.

Would it be possible to at a "-v" option to setup to display the
version number for use in scripts?

Is there a better way to check if setup is current prior to update
than what I have.


also setup --help seems to generate some errors on my windows 7 64bit host:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\rance>c:\cygwin\setup --help

C:\Users\rance>Starting cygwin install, version 2.697
io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No such file or dir
ectory
io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No such file or dir
ectory
io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such file or director
y
io_stream_cygfile: fopen(/etc/setup/chooser_window_settings) failed 2 No such fi
le or directory
Current Directory: C:\cygwin

Command Line Options:

<snipped for brevity>

Ending cygwin install
AddAccessAllowedAce(, owner) failed: 1337
AddAccessAllowedAce(, group) failed: 1337
AddAccessAllowedAce(, everyone) failed: 1337
AddAccessAllowedAce(, owner) failed: 1337
AddAccessAllowedAce(, group) failed: 1337
AddAccessAllowedAce(, everyone) failed: 1337


What do these error blocks indicate, and should I worry?


Thanks,


Rance

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019