{% extends "core/base_package.html" %}{% load staticfiles i18n moneta %} {% block repo_content %}
deb {{ absolute_url }}{% url view rid=repo.id %} {{ repo.slug }} {{ state }}{% endwith %}
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 %}