depot.py revision 21
20N/A# The contents of this file are subject to the terms of the 20N/A# Common Development and Distribution License (the "License"). 20N/A# You may not use this file except in compliance with the License. 20N/A# See the License for the specific language governing permissions 20N/A# and limitations under the License. 20N/A# When distributing Covered Code, include this CDDL HEADER in each 20N/A# If applicable, add the following below this CDDL HEADER, with the 20N/A# fields enclosed by brackets "[]" replaced with your own identifying 20N/A# information: Portions Copyright [yyyy] [name of copyright owner] 20N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 20N/A# Use is subject to license terms. 50N/A """The marshalled form of the catalog is 0N/A pkg_name (release (branch (sequence ...) ...) ...) 54N/A since we know that the server is only to report packages for which it 26N/A can offer a record. 34N/A # mkdir repo_root + "/trans/" + trans_id 26N/A # XXX opaquify using hash 14N/A # record transaction metadata: opening_time, package, user 50N/A # lookup package by name 30N/A # if not found, create package 14N/A # set package state to TRANSACTING 50N/A # Pull transaction ID from headers. 30N/A # set package state to SUBMITTED 30N/A # attempt to reconcile dependencies 30N/A # if reconciled, set state to PUBLISHED 50N/A # call back to check incomplete list 45N/A # else set state to INCOMPLETE