|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Guidance needed
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
|
|
|
|
|