Commit 26ac72d1 authored by Sébastien Delafond's avatar Sébastien Delafond

Imported Upstream version 0.9.6

parent 9141f1b3
...@@ -64,7 +64,7 @@ _aptly() ...@@ -64,7 +64,7 @@ _aptly()
mirror_subcommands="create drop show list rename search update" mirror_subcommands="create drop show list rename search update"
publish_subcommands="drop list repo snapshot switch update" publish_subcommands="drop list repo snapshot switch update"
snapshot_subcommands="create diff drop filter list merge pull rename search show verify" snapshot_subcommands="create diff drop filter list merge pull rename search show verify"
repo_subcommands="add copy create drop edit import list move remove rename search show" repo_subcommands="add copy create drop edit import include list move remove rename search show"
package_subcommands="search show" package_subcommands="search show"
task_subcommands="run" task_subcommands="run"
config_subcommands="show" config_subcommands="show"
...@@ -185,7 +185,7 @@ _aptly() ...@@ -185,7 +185,7 @@ _aptly()
"search") "search")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-with-deps" -- ${cur})) COMPREPLY=($(compgen -W "-format= -with-deps" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_mirror_list)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_mirror_list)" -- ${cur}))
fi fi
...@@ -239,7 +239,7 @@ _aptly() ...@@ -239,7 +239,7 @@ _aptly()
return 0 return 0
;; ;;
1) 1)
local files=$(find . -mindepth 1 -maxdepth 1 \( -type d -or -name \*.deb -or -name \*.dsc \) -exec basename {} \;) local files=$(find . -mindepth 1 -maxdepth 1 \( -type d -or -name \*.deb -or -name \*.dsc -or -name \*.udeb \) -exec basename {} \;)
COMPREPLY=($(compgen -W "${files}" -- ${cur})) COMPREPLY=($(compgen -W "${files}" -- ${cur}))
return 0 return 0
;; ;;
...@@ -264,7 +264,7 @@ _aptly() ...@@ -264,7 +264,7 @@ _aptly()
"create") "create")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-comment= -distribution= -component=" -- ${cur})) COMPREPLY=($(compgen -W "-comment= -distribution= -component= -uploaders-file=" -- ${cur}))
return 0 return 0
fi fi
fi fi
...@@ -282,7 +282,7 @@ _aptly() ...@@ -282,7 +282,7 @@ _aptly()
"edit") "edit")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-comment= -distribution= -component=" -- ${cur})) COMPREPLY=($(compgen -W "-comment= -distribution= -component= -uploaders-file=" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_repo_list)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_repo_list)" -- ${cur}))
fi fi
...@@ -292,7 +292,7 @@ _aptly() ...@@ -292,7 +292,7 @@ _aptly()
"search") "search")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-with-deps" -- ${cur})) COMPREPLY=($(compgen -W "-format= -with-deps" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_repo_list)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_repo_list)" -- ${cur}))
fi fi
...@@ -305,6 +305,20 @@ _aptly() ...@@ -305,6 +305,20 @@ _aptly()
return 0 return 0
fi fi
;; ;;
"include")
case $numargs in
0)
if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-accept-unsigned -force-replace -ignore-signatures -keyring= -no-remove-files -repo= -uploaders-file=" -- ${cur}))
else
comptopt -o filenames 2>/dev/null
COMPREPLY=($(compgen -f -- ${cur}))
return 0
fi
return 0
;;
esac
;;
"import") "import")
case $numargs in case $numargs in
0) 0)
...@@ -446,7 +460,7 @@ _aptly() ...@@ -446,7 +460,7 @@ _aptly()
"search") "search")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-with-deps" -- ${cur})) COMPREPLY=($(compgen -W "-format= -with-deps" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_snapshot_list)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_snapshot_list)" -- ${cur}))
fi fi
...@@ -472,7 +486,7 @@ _aptly() ...@@ -472,7 +486,7 @@ _aptly()
"snapshot"|"repo") "snapshot"|"repo")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-batch -force-overwrite -distribution= -component= -gpg-key= -keyring= -label= -origin= -passphrase= -passphrase-file= -secret-keyring= -skip-signing" -- ${cur})) COMPREPLY=($(compgen -W "-batch -force-overwrite -distribution= -component= -gpg-key= -keyring= -label= -origin= -passphrase= -passphrase-file= -secret-keyring= -skip-contents -skip-signing" -- ${cur}))
else else
if [[ "$subcmd" == "snapshot" ]]; then if [[ "$subcmd" == "snapshot" ]]; then
COMPREPLY=($(compgen -W "$(__aptly_snapshot_list)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_snapshot_list)" -- ${cur}))
...@@ -497,7 +511,7 @@ _aptly() ...@@ -497,7 +511,7 @@ _aptly()
"update") "update")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-batch -force-overwrite -gpg-key= -keyring= -passphrase= -passphrase-file= -secret-keyring= -skip-signing" -- ${cur})) COMPREPLY=($(compgen -W "-batch -force-overwrite -gpg-key= -keyring= -passphrase= -passphrase-file= -secret-keyring= -skip-contents -skip-signing" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur}))
fi fi
...@@ -512,7 +526,7 @@ _aptly() ...@@ -512,7 +526,7 @@ _aptly()
"switch") "switch")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-batch -force-overwrite -component= -gpg-key= -keyring= -passphrase= -passphrase-file= -secret-keyring= -skip-signing" -- ${cur})) COMPREPLY=($(compgen -W "-batch -force-overwrite -component= -gpg-key= -keyring= -passphrase= -passphrase-file= -secret-keyring= -skip-contents -skip-signing" -- ${cur}))
else else
COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur})) COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur}))
fi fi
...@@ -531,7 +545,11 @@ _aptly() ...@@ -531,7 +545,11 @@ _aptly()
;; ;;
"drop") "drop")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur})) if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-force-drop" -- ${cur}))
else
COMPREPLY=($(compgen -W "$(__aptly_published_distributions)" -- ${cur}))
fi
return 0 return 0
fi fi
...@@ -544,6 +562,14 @@ _aptly() ...@@ -544,6 +562,14 @@ _aptly()
;; ;;
"package") "package")
case "$subcmd" in case "$subcmd" in
"search")
if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-format=" -- ${cur}))
fi
return 0
fi
;;
"show") "show")
if [[ $numargs -eq 0 ]]; then if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
...@@ -560,6 +586,12 @@ _aptly() ...@@ -560,6 +586,12 @@ _aptly()
return 0 return 0
fi fi
;; ;;
"graph")
if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-format= -output=" -- ${cur}))
return 0
fi
;;
"api") "api")
case "$subcmd" in case "$subcmd" in
"serve") "serve")
......
sudo: false
language: go language: go
go: go:
- 1.3.3 - 1.4
- 1.5
- tip - tip
addons:
apt:
packages:
- python-virtualenv
- graphviz
env: env:
global: global:
- secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc=" - secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc="
- secure: "V7OjWrfQ8UbktgT036jYQPb/7GJT3Ol9LObDr8FYlzsQ+F1uj2wLac6ePuxcOS4FwWOJinWGM1h+JiFkbxbyFqfRNJ0jj0O2p93QyDojxFVOn1mXqqvV66KFqAWR2Vzkny/gDvj8LTvdB1cgAIm2FNOkQc6E1BFnyWS2sN9ea5E=" - secure: "V7OjWrfQ8UbktgT036jYQPb/7GJT3Ol9LObDr8FYlzsQ+F1uj2wLac6ePuxcOS4FwWOJinWGM1h+JiFkbxbyFqfRNJ0jj0O2p93QyDojxFVOn1mXqqvV66KFqAWR2Vzkny/gDvj8LTvdB1cgAIm2FNOkQc6E1BFnyWS2sN9ea5E="
- secure: "OxiVNmre2JzUszwPNNilKDgIqtfX2gnRSsVz6nuySB1uO2yQsOQmKWJ9cVYgH2IB5H8eWXKOhexcSE28kz6TPLRuEcU9fnqKY3uEkdwm7rJfz9lf+7C4bJEUdA1OIzJppjnWUiXxD7CEPL1DlnMZM24eDQYqa/4WKACAgkK53gE=" - secure: "OxiVNmre2JzUszwPNNilKDgIqtfX2gnRSsVz6nuySB1uO2yQsOQmKWJ9cVYgH2IB5H8eWXKOhexcSE28kz6TPLRuEcU9fnqKY3uEkdwm7rJfz9lf+7C4bJEUdA1OIzJppjnWUiXxD7CEPL1DlnMZM24eDQYqa/4WKACAgkK53gE="
before_install: before_install:
- sudo apt-get update -qq
- sudo apt-get install -y python-virtualenv graphviz
- virtualenv env - virtualenv env
- . env/bin/activate - . env/bin/activate
- pip install boto requests python-swiftclient - pip install boto requests python-swiftclient
install: install:
- make prepare - make prepare
script: make travis script: make travis
matrix: matrix:
allow_failures: allow_failures:
- go: tip - go: tip
notifications: notifications:
webhooks: webhooks: