Hi Alan (and others),

Please if you can provide your inputs on the evaluation that I have put
for this issue.

Thanks in advance,
~Saurabh

*Synopsis*: pkgrecv -a creates archives even when -n is specified


=== *Evaluation* =============================================================
In archive_pkgs() (src/pull.py) we open the archive for some sanity tests,
but this should be skipped in case of DRU_RUN as there shopuld not be
any archive created.

508         # Open the archive early so that permissions failures, etc. can be
509         # detected before actual work is started.
510         pkg_arc = pkg.p5p.Archive(target, mode="w")

should be somthing like :

508         # Open the archive early so that permissions failures, etc. can be
509         # detected before actual work is started.
510         if not dry_run:
511                 pkg_arc = pkg.p5p.Archive(target, mode="w")

with this approach, the o/p that we get now is :

root@S11:/export/home/test# pkgrecv -n -a -d test.p5p -s 
http://ipkg.us.oracle.com/solaris11/dev release/name
Retrieving packages for publisher solaris ...
Retrieving and evaluating 1 package(s)...
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  0/1         0/6      0.0/0.0

root@S11:/export/home/test# ls -l
total 0

is this the desired result ?



--


Saurabh Vyas
Solaris Install Group,
Revenue Product Engineering (RPE), Systems

ORACLE India | Off Langford Road | Bangalore | 560025

|Bangalore |
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to