On Tuesday November 2    10:18AM, Shawn Walker wrote:
On 11/ 2/10 09:48 AM, Chris Quenelle wrote:
On Friday October 29  11:26AM, Shawn Walker wrote:
On 10/28/10 05:21 PM, Chris Quenelle wrote:
When I try to use a file: repo with importer.py, it throws an exception.

What exception?

It's difficult to say what's wrong unless you provide the full
traceback / error.

-Shawn

Sorry for the delay:

PYTHONPATH=../../../proto/root_i386/usr/lib/python2.6/vendor-packages
./importer.py -b 0.150 -T \*.py -G reboot -G smf_manifests -G fonts -G
gnome -G variants -G attrs -m ARCH=i386 -m ARCH32=i86 -m ARCH64=amd64 -m
i386_ONLY='' -m sparc_ONLY=# -p ../../../proto/root_i386 -s
file:///tmp/repodir -w ../../../packages/i386 -w /tmp/pkgs -w
/net/paradise.sfbay/export/integrate_dock/nv/nvx_wos_150/all -w
/net/paradise.sfbay/export/integrate_dock/nv/nvx_wos_150/i386 -w . -D
boot/solaris/devicedb/master -D etc/hba.conf -D etc/ima.conf -D
etc/inet/services -D etc/mpapi.conf \
-I
150:149:148:147:146:145:144:143:142:141:140:139:138:137:136:135:134:133:132:131:130:129:128:127:126:125:124:123:122:121:120:119:118:117:116:111a:111:110:109:108:107:106:105:104:103:102:101a:101:100a:99:98:97:96:95:94:93:92:91:90:89:88:87:86:85:84:83:82:81:80:79b:78:77:76:75a:73:72:71:00
\
-R http://ipkg.sfbay/rele...@[email protected],5.11-0.150 \
unbundleds/Studio
Seeding local SMF manifest database from file:///tmp/repodir
Traceback (most recent call last):
File "./importer.py", line 1893, in <module>
main_func()
File "./importer.py", line 1549, in main_func
",5.11-" + def_branch):
File "./importer.py", line 1083, in get_smf_packages
repo_uri=server_url)
File
"..../gate/proto/root_i386/usr/lib/python2.6/vendor-packages/pkg/client/api.py",
line 3253, in image_create
variants=variants, props=props)
File
"..../gate/proto/root_i386/usr/lib/python2.6/vendor-packages/pkg/client/image.py",
line 763, in create
self.refresh_publishers(progtrack=progtrack)
File
"..../gate/proto/root_i386/usr/lib/python2.6/vendor-packages/pkg/client/image.py",
line 2038, in refresh_publishers
raise e
pkg.client.api_errors.CatalogRefreshException
*** Error code 1
make: Fatal error: Command failed for target `Studio.import'

Does /tmp/repodir contain a valid repository? What does 'pkgrepo info -s /tmp/repodir' say?

If not, that would be the problem.

A repository must be created first using 'pkgrepo create /tmp/repodir'.

-Shawn

If I trap and ignore the exception, the importer script goes on to publish
all the packages successfully.  So it seems that the repo is there and
functional.   I created the repo beforehand using:
 pkgrepo create $REPO
 pkgrepo set -s $REPO publisher/prefix=myprefix
in my build script.

--chris



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

Reply via email to