Rich Burridge wrote:
Shawn Walker wrote:
Yes, but there a few things that don't make sense. If I start a depot server (using a pkg gate tip workspace):

./depot.py -p 8009 -d /tmp/repo --content-root=`pwd`

...and I then publish to it using pkgsend:

REPO=http://localhost:8009
eval `pkgsend -s $REPO open system/[email protected]`
pkgsend -s $REPO add set name="description" value="Package to test package names with slashes and cross-authorities"
pkgsend -s $REPO add dir path=tmp/foo mode=0755 owner=root group=bin
pkgsend -s $REPO add file /etc/group path=tmp/group mode=0755 owner=root group=bin
pkgsend -s $REPO add depend type=require fmri=pkg:/SUNWcsl
pkgsend -s $REPO close

...it works fine.

Did you by chance start the depot server, then remove the contents of that directory, and then publish to it?

No. I do start the depot server initially, knowing that there isn't an
/export/home/pkg-solaris/repo-6941 directory. That's the way I've
always done it and it's never been a problem before. I certainly
don't remove it after I've started it.

We have test cases in the test suite for exactly that case (repository directory doesn't exist, but start a depot and publish to it) and it works fine. Something else is interfering somehow.

The only way I can reproduce your stack trace is by removing the repository directory *after* starting the depot server.

If you remove that directory completely, and then repeat your original steps does it still fail?

Yes, unless I then manually create those two directories.
It will then work.

What revision of the gate are you using?

So, you're saying that if you perform these specific steps:

* rm -rf /export/home/pkg-solaris/repo-6941

* export ROOT=/export/home/richb/pkg/bugs/6941/gate/proto/root_i386
export PYTHONPATH=${ROOT}/usr/lib/python2.4/vendor-packages
${ROOT}/usr/lib/pkg.depotd --content-root=${ROOT}/usr/share/lib/pkg -d /export/home/pkg-solaris/repo-6941 -p 26941 > errs.depotd 2>&1 &

* then immediately publish to the depot

...you still see the error?

Does the error only happen when you publish using the importer? What happens if you publish using the test script I posted previously?

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

Reply via email to