1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
// Copyright (c) 2009, Jens Peter Secher <jpsecher@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//
// Used by MercurialPristineTar. Holds all information that is needed to
// recreate a pristine tarball from a component branch.
//
class Pristine
{
// The Mercurial revision of the component branch from where the tarball can
// be regenerated.
public var revision (default,null) : String;
// The xdelta patch file to make the recreated tarball identical to the
// original tarball.
public var tarballDelta (default,null) : String;
// One of gz, bz2, lzma or xz.
public var compression (default,null) : String;
// The pristine-{gz,bz2,xz} patch file to compress the patched, recreated
// tarball the same way as the original, compressed tarball.
public var compressionDelta (default,null) : String;
// The name of the top-level directory in the original tarball.
// Assumption: that there is one and only one.
public var directory (default,null) : String;
public function new
(
compression : String,
compressionDelta : String,
tarballDelta : String,
revision : String,
directory : String
)
{
this.compression = compression;
this.compressionDelta = compressionDelta;
this.tarballDelta = tarballDelta;
this.revision = revision;
this.directory = directory;
}
}
|