Hi all,

I have faced the following issue when I tried to create a user image 
using a non valid repository :


C:\Users\jesqa\gfv2-image3\imgr\bin>pkg image-create -U -a 
sun.com=http://localhost:20005 c:\Users\jesqa\testdir
Traceback (most recent call last):
    File "C:\Users\jesqa\gfv2-image3\imgr\bin\\client.py", line 851, in ?
      ret = main_func()
    File "C:\Users\jesqa\gfv2-image3\imgr\bin\\client.py", line 784, in 
main_func
      ret = image_create(img, pargs)
    File "C:\Users\jesqa\gfv2-image3\imgr\bin\\client.py", line 754, in 
image_create
      img.retrieve_catalogs()
    File 
"C:\Users\jesqa\gfv2-image3\imgr\lib\vendor-packages\pkg\client\image.py", 
line 540, in retrieve_catalogs
      raise RuntimeError, (failed, total, succeeded)
RuntimeError: ([({'origin': 'http://localhost:20005', 'prefix': 
'sun.com', 'mirrors': None}, <urllib2.URLError instance
at 0x01589C60>)], 1, 0)


But under the directory c:\Users\jesqa\testdir, I have found the 
following content :

Directory of c:\Users\jesqa\testdir

03/11/2008  06:14 PM    <DIR>          .
03/11/2008  06:14 PM    <DIR>          ..
03/11/2008  06:14 PM    <DIR>          .org.opensolaris,pkg
                 0 File(s)              0 bytes
                 3 Dir(s)   6,677,827,584 bytes free


There are 2 problems here :

pb1 : the Traceback should be replaced by an appropriate error message

pb2 : in case of image creation failure, we should not have remaining 
files/directories left under the install_home directory.

Please let me know if there are bug IDs for those problems , or if I 
need to file bugs for that.

Thanks and Regards,

Faouzia

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to