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;
}
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;
}
Aggregations