{% extends "core/base_package.html" %}{% load staticfiles i18n moneta %} {% block repo_content %}

{% trans 'Available APT sources' %}

{% with slug=repo.slug %}{% blocktrans %}Add one of these lines to your /etc/apt/sources.list.d/{{ slug }}.list file: {% endblocktrans %}{% endwith %} {% if use_https %} {% trans 'Do not forget to install apt-transport-https first.' %}
sudo apt-get install apt-transport-https
{% endif %} {% trans 'Please run the following command to register the GPG key of this repository:' %} {% with view=repo|moneta_url:"gpg_key" %}
curl {{ absolute_url }}{% url view rid=repo.id repo_slug=repo.slug slug2=repo.slug %} | sudo apt-key add -
{% endwith %} {% if admin %}{% trans 'In order to add a new package, please run the following command:' %}
FILENAME=filename-version.deb
curl --data-binary @$FILENAME -u : --anyauth {{ absolute_url }}{% url 'moneta.core.views.add_element_post' rid=repo.id %}?filename=$FILENAME{% for state in states %}&states={{ state }}{% endfor %}
{% trans 'Run the following command to re-index packages after an upload:' %} {% with view=repo|auth_moneta_url:"force_index" %}
curl -u : --anyauth {{ absolute_url }}{% url view rid=repo.id repo_slug=repo.slug %}
{% endwith %} {% endif %} {% include 'core/add_signature.html' %} {% endblock %}