From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20517 invoked by alias); 10 Dec 2014 23:29:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20433 invoked by uid 89); 10 Dec 2014 23:29:42 -0000 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 Received: from out.ipsmtp2nec.opaltelecom.net (HELO out.ipsmtp2nec.opaltelecom.net) (62.24.202.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 10 Dec 2014 23:29:40 +0000 X-SMTPAUTH: drstacey@tiscali.co.uk X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQCANTWiFRPRtr+/2dsb2JhbAANTINYg13AT4I5hW0DAgKBLgEBAQEBhQoBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQHIMHGXOQEBAQcBAQEBHoEmjmQWglmBRwWMLIUWgzyDAQ0jii2CEodNgzEBAQE X-IPAS-Result: ArQCANTWiFRPRtr+/2dsb2JhbAANTINYg13AT4I5hW0DAgKBLgEBAQEBhQoBAQQjFUARCxgCAgUWCwICCQMCAQIBRRMIAQHIMHGXOQEBAQcBAQEBHoEmjmQWglmBRwWMLIUWgzyDAQ0jii2CEodNgzEBAQE Received: from 79-70-218-254.dynamic.dsl.as9105.com (HELO [192.168.1.67]) ([79.70.218.254]) by out.ipsmtp2nec.opaltelecom.net with ESMTP; 10 Dec 2014 23:29:36 +0000 Message-ID: <5488D75B.5080601@tiscali.co.uk> Date: Wed, 10 Dec 2014 23:29:00 -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@cygwin.com Subject: Re: RFC: 1.7.33 problem with user's home directory References: <20141110205216.GJ2782@calimero.vinschen.de> <0B8D23F7-0258-472D-BF38-860402FD3CDC@etr-usa.com> <20141111101821.GO2782@calimero.vinschen.de> <20141111111437.GB28012@calimero.vinschen.de> <20141126205658.GA9157@calimero.vinschen.de> <20141204154911.GH3810@calimero.vinschen.de> <199481337.20141205082850@yandex.ru> <20141205101505.GJ3810@calimero.vinschen.de> <12010306738.20141206000557@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00164.txt.bz2 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