[csw-maintainers] introducing csw-upload-pkg

Maciej Bliziński maciej at opencsw.org
Wed May 11 11:39:34 CEST 2011


For those who haven't yet tried it, here's an example run.  The
executable can be run from checked out sources by giving the full
path, as shown below.

In the first phase, srv4 files are uploaded to allpkgs.  Once this is
done, checkpkg is run against all catalogs that the packages are going
to be added to.  When inserting a 5.9 package to a 5.10 catalog, it's
a good idea to check the package against the 5.10 catalog too, as
there may be some differences between corresponding 5.9 and 5.10
catalogs.  If all checks pass, packages are added to corresponding
catalogs.

maciej at login [login]:~ > ~/src/opencsw-git/gar/v2/bin/csw-upload-pkg
~/exp/gfile* ~/exp/*magic*
Processing 8 file(s). Please wait.
Uploading '/home/maciej/exp/gfile-5.07,REV=2011.05.11-SunOS5.9-i386-CSW.pkg.gz'
Uploading '/home/maciej/exp/gfile-5.07,REV=2011.05.11-SunOS5.9-sparc-CSW.pkg.gz'
Uploading '/home/maciej/exp/libmagic1-5.07,REV=2011.05.11-SunOS5.9-i386-CSW.pkg.gz'
Uploading '/home/maciej/exp/libmagic1-5.07,REV=2011.05.11-SunOS5.9-sparc-CSW.pkg.gz'
Uploading '/home/maciej/exp/libmagic_data-5.07,REV=2011.05.11-SunOS5.9-all-CSW.pkg.gz'
Uploading '/home/maciej/exp/libmagic_dev-5.07,REV=2011.05.11-SunOS5.9-i386-CSW.pkg.gz'
Uploading '/home/maciej/exp/libmagic_dev-5.07,REV=2011.05.11-SunOS5.9-sparc-CSW.pkg.gz'
Uploading '/home/maciej/exp/py_libmagic-5.07,REV=2011.05.11-SunOS5.9-all-CSW.pkg.gz'
Checking 5 package(s) against catalog unstable sparc SunOS5.9
Checking 5 package(s) against catalog unstable i386 SunOS5.9
Checking 5 package(s) against catalog unstable sparc SunOS5.10
Checking 5 package(s) against catalog unstable i386 SunOS5.10
All checks successful. Proceeding.
Inserting gfile (i386 SunOS5.9) into catalog unstable i386 SunOS5.10
Inserting libmagic1 (i386 SunOS5.9) into catalog unstable i386 SunOS5.10
Inserting libmagic_data (all SunOS5.9) into catalog unstable i386 SunOS5.10
Inserting libmagic_dev (i386 SunOS5.9) into catalog unstable i386 SunOS5.10
Inserting py_libmagic (all SunOS5.9) into catalog unstable i386 SunOS5.10
Inserting gfile (i386 SunOS5.9) into catalog unstable i386 SunOS5.11
Inserting libmagic1 (i386 SunOS5.9) into catalog unstable i386 SunOS5.11
Inserting libmagic_data (all SunOS5.9) into catalog unstable i386 SunOS5.11
Inserting libmagic_dev (i386 SunOS5.9) into catalog unstable i386 SunOS5.11
Inserting py_libmagic (all SunOS5.9) into catalog unstable i386 SunOS5.11
Inserting gfile (i386 SunOS5.9) into catalog unstable i386 SunOS5.9
Inserting libmagic1 (i386 SunOS5.9) into catalog unstable i386 SunOS5.9
Inserting libmagic_data (all SunOS5.9) into catalog unstable i386 SunOS5.9
Inserting libmagic_dev (i386 SunOS5.9) into catalog unstable i386 SunOS5.9
Inserting py_libmagic (all SunOS5.9) into catalog unstable i386 SunOS5.9
Inserting gfile (sparc SunOS5.9) into catalog unstable sparc SunOS5.10
Inserting libmagic1 (sparc SunOS5.9) into catalog unstable sparc SunOS5.10
Inserting libmagic_data (all SunOS5.9) into catalog unstable sparc SunOS5.10
Inserting libmagic_dev (sparc SunOS5.9) into catalog unstable sparc SunOS5.10
Inserting py_libmagic (all SunOS5.9) into catalog unstable sparc SunOS5.10
Inserting gfile (sparc SunOS5.9) into catalog unstable sparc SunOS5.11
Inserting libmagic1 (sparc SunOS5.9) into catalog unstable sparc SunOS5.11
Inserting libmagic_data (all SunOS5.9) into catalog unstable sparc SunOS5.11
Inserting libmagic_dev (sparc SunOS5.9) into catalog unstable sparc SunOS5.11
Inserting py_libmagic (all SunOS5.9) into catalog unstable sparc SunOS5.11
Inserting gfile (sparc SunOS5.9) into catalog unstable sparc SunOS5.9
Inserting libmagic1 (sparc SunOS5.9) into catalog unstable sparc SunOS5.9
Inserting libmagic_data (all SunOS5.9) into catalog unstable sparc SunOS5.9
Inserting libmagic_dev (sparc SunOS5.9) into catalog unstable sparc SunOS5.9
Inserting py_libmagic (all SunOS5.9) into catalog unstable sparc SunOS5.9
maciej at login [login]:~ >

When packages are added, a cron job rebuilds the opencsw-future
catalog, and the maintainer gets an email notification about the new
version being available from the mirror.

If you haven't tried it yet, please give it a go!  If you don't have
any new packages at the moment, you can run the tool with previously
submitted packages.

Maciej


More information about the maintainers mailing list