Search in sources :

Example 1 with Revisions

use of aQute.service.library.Revisions in project bnd by bndtools.

the class Repository method sync.

/**
	 * Ensure that the revisions is updated
	 * 
	 * @throws Exception
	 */
byte[] sync() throws Exception {
    Revisions revisions = index.getRevisions();
    if (!index.isSynced()) {
        logger.debug("Syncing repo indexes");
        getLibrary().createRevisions(revisions);
        index.setSynced(revisions._id);
    }
    return revisions._id;
}
Also used : Revisions(aQute.service.library.Revisions)

Example 2 with Revisions

use of aQute.service.library.Revisions in project bnd by bndtools.

the class Index method getRevisions.

public Revisions getRevisions() throws Exception {
    init();
    Revisions revisions = new Revisions();
    for (RevisionRef ref : repo.revisionRefs) revisions.content.add(ref.revision);
    revisions._id = Revisions.checksum(revisions);
    return revisions;
}
Also used : RevisionRef(aQute.service.library.Library.RevisionRef) Revisions(aQute.service.library.Revisions)

Aggregations

Revisions (aQute.service.library.Revisions)2 RevisionRef (aQute.service.library.Library.RevisionRef)1