WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Guidance needed

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Guidance needed
From: Neil Turton <nturton@xxxxxxxxxxxxxx>
Date: Tue, 11 Aug 2009 09:48:13 +0100
Cc: Richard Bowser <bowser.richard@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Tue, 11 Aug 2009 01:48:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C6A6022A.11D27%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C6A6022A.11D27%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Keir Fraser wrote:
> On 10/08/2009 16:48, "Richard Bowser" <bowser.richard@xxxxxxxxx> wrote:
>> The ketchup untar function holds this code:
>>     err = os.system("mv linux*/* linux*/.[^.]* ..; rmdir linux*")
>>     if err:
>>         error("ketchup: Unpacking failed: ", err)
>>         sys.exit(-1)
>>
>> I believe the printed 256 above is the hex value passed as "err".
> 
> Er, well it looks like its trying to copy the non-file '..'. That fails and
> so the 'mv' fails and so the following 'rmdir' fails too. I'm not sure why
> it would try to copy '..' as the shell regexp (.[^.]*) appears to explicitly
> exclude it.

The second glob excludes it but the first will match it if dotglob gets
set somehow.

Try inserting '[^.]':
  err = os.system("mv linux*/[^.]* linux*/.[^.]* ..; rmdir linux*")

Cheers, Neil.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>