X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=VtIgTznxMgMkQwAmE7f0qzbWeq9fzQkOHhEx8Oo7+PF EhXQWhDIjPmDi8N3Jpf1xVxswcL/i6dscu8wBfxLvP6NoRJAZjWea99xoK+sSsUb HLQnNPUUeXP4tIpNn4HVb70GD42jG498t5bvvvZFDIUPrBQSWt6HcsT8Skc3P8VQ = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=odGq2Eiiad8u6wmvip2laURdfbk=; b=Ra+8K6DVWRoEWY9HB L8wo3bXuEmSvtB3+7sBT0eY55ScytgQdwaqqDctu6APaJkBLd4mJADxUTwbeOHPg CXPZfLeSmsd22o/VjRjd1VKn9wWPKp53KGfyGsSeJgtnGk8TWKgns1/TFyD/xkaD eJZFqTztcbXl9mypw60mxKUSyY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_COUK,KAM_FROM_URIBL_PCCC,SPF_PASS autolearn=no version=3.3.2 X-HELO: out.ipsmtp2nec.opaltelecom.net X-SMTPAUTH: drstacey AT tiscali DOT co DOT uk X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQCANTWiFRPRtr+/2dsb2JhbAANTINYg13AT4I5hW0DAgKBLgEBAQEBhQoBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQHIMHGXOQEBAQcBAQEBHoEmjmQWglmBRwWMLIUWgzyDAQ0jii2CEodNgzEBAQE X-IPAS-Result: ArQCANTWiFRPRtr+/2dsb2JhbAANTINYg13AT4I5hW0DAgKBLgEBAQEBhQoBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQHIMHGXOQEBAQcBAQEBHoEmjmQWglmBRwWMLIUWgzyDAQ0jii2CEodNgzEBAQE Message-ID: <5488D75B.5080601@tiscali.co.uk> Date: Wed, 10 Dec 2014 23:29:31 +0000 From: David Stacey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: RFC: 1.7.33 problem with user's home directory References: <20141110205216 DOT GJ2782 AT calimero DOT vinschen DOT de> <0B8D23F7-0258-472D-BF38-860402FD3CDC AT etr-usa DOT com> <20141111101821 DOT GO2782 AT calimero DOT vinschen DOT de> <20141111111437 DOT GB28012 AT calimero DOT vinschen DOT de> <20141126205658 DOT GA9157 AT calimero DOT vinschen DOT de> <20141204154911 DOT GH3810 AT calimero DOT vinschen DOT de> <199481337 DOT 20141205082850 AT yandex DOT ru> <20141205101505 DOT GJ3810 AT calimero DOT vinschen DOT de> <12010306738 DOT 20141206000557 AT yandex DOT ru> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 10/12/14 20:52, cyg Simple wrote: > On Fri, Dec 5, 2014 at 4:05 PM, Andrey Repin wrote: >> Greetings, Corinna Vinschen! >> >>>>> I'd appreciate if those not shy to install developer snapshots would >>>>> give this stuff a try in the meantime. >>>> I think I'm about to make a script to install snapshots, at this rate it seems >>>> the right thing to do. >>>> Is there a direct way to query for the latest snapshot? >> >>> The snapshots always have a date attached to the filename. >> I mean, if there's a way to know, what is the latest available snapshot? >> If I want to write a script, that fetch [and install] one. >> I can parse the/snapshots/ page, of course, but this is the least desirable >> choice. For multiple reasons. I would like to have a single point, that could >> refer to the very latest snapshot. Even if it is something like >> /snapshots/x86/cygwin-inst-latest.tar.xz redirecting to >> actual latest snapshot, that'd be quite enough. >> > You could just parse the setup.hint file from your favorite mirror. This doesn't work in the general case, as not all snapshots are uploaded as test packages. Plus you'd have to wait while your favourite mirror picked up the new package. Sadly, parsing the HTML is the only way to go right now. This is very error-prone, as any assumption you make about the structure of the HTML could change with no notice. The following works (as the snapshots page stands) by extracting the date from one of the filenames: wget -q -O - http://cygwin.com/snapshots/ | egrep "cygwin1-[0-9]*.dll.xz" | head -n 1 | sed 's/^.*cygwin1-\([0-9]*\)\.dll\.xz.*$/\1/g' This is about as fool-proof as I can make it. It assumes nothing about the HTML, so it should survive a fairly substantial change to the web page. Provided we don't change the format of the filenames, the above stands a chance of working. YMMV. Cheers, Dave. -- 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