Commit b3596e74 authored by Sébastien Delafond's avatar Sébastien Delafond

Imported Upstream version 0.7.1

parent f4e87ed8

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

language: go
- 1.1
- 1.2.1
- 1.3
- tip
List of contributors, in chronological order:
* Andrey Smirnov (
* Sebastien Binet (
* Ryan Uber (
* Simon Aquino (
\ No newline at end of file
gom '', :commit => '5fac954758f5'
gom '', :commit => '7aa593ce8cea'
gom '', :commit => '212766062629'
gom '', :commit => '454bc64fdfa2'
gom '', :commit => '5ff2502e2556'
gom '', :commit => '12e4b4183793'
gom '', :commit => '74be7a1388046f374ac36e93d46f5d56e856f827'
gom ''
gom ''
gom '', :commit => '55f224c07975fddef9d2116600c664e30df3d594'
gom '', :commit => '36eb5f3452b1283a211fa35bc00c646fd0db5c4b'
gom '', :commit => 'ff3719c6816e2cd194f05058452d660608e178ac'
gom '', :commit => 'f408b00e68d5d6e21b9f18bd310978dafc604e47'
gom '', :commit => '0d0aac2addb39050f45e92c5a6252926096dc841'
gom '', :commit => '9888007'
gom '', :commit => '71c2886f5a673a35f909803f38ece5810165097b'
gom '', :commit => '5668e431776a7957528361f90ce828266c69ed08'
GOVERSION=$(shell go version | awk '{print $$3;}')
PACKAGES=database deb files http utils
ALL_PACKAGES=aptly cmd console database deb files http utils
PACKAGES=database deb files http query s3 utils
ALL_PACKAGES=aptly cmd console database deb files http query s3 utils
BINPATH=$(abspath ./_vendor/bin)
......@@ -43,9 +43,7 @@ install:
$(GOM) build -o $(BINPATH)/aptly
system-test: install
ifeq ($(GOVERSION),$(filter $(GOVERSION),go1.2 go1.2.1 devel))
if [ ! -e ~/aptly-fixture-db ]; then git clone ~/aptly-fixture-db/; fi
if [ ! -e ~/aptly-fixture-pool ]; then git clone ~/aptly-fixture-pool/; fi
PATH=$(BINPATH)/:$(PATH) $(PYTHON) system/ --long
......@@ -69,7 +67,17 @@ package:
(cd root/etc/bash_completion.d && wget
gzip root/usr/share/man/man1/aptly.1
fpm -s dir -t deb -n aptly -v $(VERSION) --url= --license=MIT --vendor="Andrey Smirnov <>" \
-f -m "Andrey Smirnov <>" --description="Debian repository management tool" -C root/ .
-f -m "Andrey Smirnov <>" --description="Debian repository management tool" --deb-recommends bzip2 -C root/ .
mv aptly_$(VERSION)_*.deb ~
rm -rf aptly-$(VERSION)
mkdir -p aptly-$(VERSION)/src/
cd aptly-$(VERSION)/src/ && git clone && cd aptly && git checkout v$(VERSION)
cd aptly-$(VERSION)/src/ && gom -production install
cd aptly-$(VERSION)/src/ && find . \( -name .git -o -name .bzr -o -name .hg \) -print | xargs rm -rf
rm -rf aptly-$(VERSION)/src/{pkg,bin}
tar cyf aptly-$(VERSION)-src.tar.bz2 aptly-$(VERSION)
rm -rf aptly-$(VERSION)
.PHONY: coverage.out
......@@ -8,6 +8,10 @@ aptly
.. image::
.. image::
Aptly is a swiss army knife for Debian repository management.
Documentation is available at ` <>`_. For support use
......@@ -51,7 +55,7 @@ Ubuntu 10.0+. Package contains aptly binary, man page and bash completion.
Binary executables (depends almost only on libc) are available for download from `Bintray <>`_.
If you have Go environment set up, you can build aptly from source by running (go 1.1+ required)::
If you have Go environment set up, you can build aptly from source by running (go 1.2+ required)::
go get -u
mkdir -p $GOPATH/src/
# Add no patterns to .hgignore except for files generated by the build.
# This source code refers to The Go Authors for copyright purposes.
# The master list of authors is in the main Go distribution,
# visible at
# This source code was written by the Go contributors.
# The master list of contributors is in the main Go distribution,
# visible at
Additional IP Rights Grant (Patents)
"This implementation" means the copyrightable works distributed by
Google as part of the Go project.
Google hereby grants to You a perpetual, worldwide, non-exclusive,
no-charge, royalty-free, irrevocable (except as stated in this section)
patent license to make, have made, use, offer to sell, sell, import,
transfer and otherwise run, modify and propagate the contents of this
implementation of Go, where such license applies only to those patent
claims, both currently owned or controlled by Google and acquired in
the future, licensable by Google that are necessarily infringed by this
implementation of Go. This grant does not include claims that would be
infringed only as a consequence of further modification of this
implementation. If you or your agent or exclusive licensee institute or
order or agree to the institution of patent litigation against any
entity (including a cross-claim or counterclaim in a lawsuit) alleging
that this implementation of Go or any code incorporated within this
implementation of Go constitutes direct or contributory patent
infringement, or inducement of patent infringement, then any patent
rights granted to you under this License for this implementation of Go
shall terminate as of the date such litigation is filed.
This subrepository holds the source for various packages and tools that support
the Go programming language.
Some of the tools, godoc and vet for example, are included in binary Go distributions.
Others, including the Go oracle and the test coverage tool, can be fetched with "go get".
Packages include a type-checker for Go and an implementation of the
Static Single Assignment form (SSA) representation for Go programs.
To submit changes to this repository, see
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package astutil_test
// This file defines tests of PathEnclosingInterval.
// TODO(adonovan): exhaustive tests that run over the whole input
// tree, not just handcrafted examples.
import (
// pathToString returns a string containing the concrete types of the
// nodes in path.
func pathToString(path []ast.Node) string {
var buf bytes.Buffer
fmt.Fprint(&buf, "[")
for i, n := range path {
if i > 0 {
fmt.Fprint(&buf, " ")
fmt.Fprint(&buf, strings.TrimPrefix(fmt.Sprintf("%T", n), "*ast."))
fmt.Fprint(&buf, "]")
return buf.String()
// findInterval parses input and returns the [start, end) positions of
// the first occurrence of substr in input. f==nil indicates failure;
// an error has already been reported in that case.
func findInterval(t *testing.T, fset *token.FileSet, input, substr string) (f *ast.File, start, end token.Pos) {
f, err := parser.ParseFile(fset, "<input>", input, 0)
if err != nil {
t.Errorf("parse error: %s", err)
i := strings.Index(input, substr)
if i < 0 {
t.Errorf("%q is not a substring of input", substr)
f = nil
filePos := fset.File(f.Package)
return f, filePos.Pos(i), filePos.Pos(i + len(substr))
// Common input for following tests.
const input = `
// Hello.
package main