On Wed, Dec 24, 2014 at 11:22 AM, Paul Wise wrote: > I think it would be better to link to https only because debian.org > services redirect all sites to https (except www.d.o but that uses a > HSTS/CSS trick to redirect to https). I'll submit a patch to do that.
Attached. -- bye, pabs https://wiki.debian.org/PaulWise
From 6294f4b2949b454e675a578c452b4d9af92d159a Mon Sep 17 00:00:00 2001 From: Paul Wise <[email protected]> Date: Wed, 24 Dec 2014 09:15:23 +0800 Subject: [PATCH] Use SSL for as many links as possible --- AUTHORS | 4 ++-- COPYING | 6 +++--- HACKING | 4 ++-- README | 4 ++-- bin/debsources-backup-db | 2 +- bin/debsources-dbadmin | 2 +- bin/debsources-debian-source-archive | 2 +- bin/debsources-debian-source-mirror | 2 +- bin/debsources-foreach | 2 +- bin/debsources-fsck | 2 +- bin/debsources-main | 2 +- bin/debsources-sloccount | 2 +- bin/debsources-suite-archive | 2 +- bin/debsources-update | 2 +- bin/lib.sh | 2 +- contrib/git-pre-commit | 2 +- debsources/app/app_factory.py | 2 +- debsources/app/extract_stats.py | 2 +- debsources/app/forms.py | 2 +- debsources/app/infobox.py | 4 ++-- debsources/app/sourcecode.py | 2 +- debsources/app/static/css/debian.css | 6 +++--- debsources/app/static/javascript/debsources.js | 2 +- debsources/app/templates/about.html | 10 +++++----- debsources/app/templates/advanced_search.html | 4 ++-- debsources/app/templates/base.html | 4 ++-- debsources/app/templates/doc.html | 8 ++++---- debsources/app/templates/doc_overview.html | 6 +++--- debsources/app/templates/footer.inc.html | 4 ++-- debsources/app/templates/index.html | 8 ++++---- debsources/app/templates/macros.inc.html | 2 +- debsources/app/views.py | 2 +- debsources/archiver.py | 2 +- debsources/charts.py | 2 +- debsources/consts.py | 4 ++-- debsources/db_storage.py | 2 +- debsources/debmirror.py | 2 +- debsources/excepts.py | 2 +- debsources/filetype.py | 2 +- debsources/fs_storage.py | 2 +- debsources/hashutil.py | 2 +- debsources/local_info.py | 2 +- debsources/mainlib.py | 2 +- debsources/models.py | 4 ++-- debsources/plugins/hook_checksums.py | 2 +- debsources/plugins/hook_ctags.py | 2 +- debsources/plugins/hook_hello.py | 2 +- debsources/plugins/hook_metrics.py | 2 +- debsources/plugins/hook_sloccount.py | 2 +- debsources/sqla_session.py | 2 +- debsources/statistics.py | 2 +- debsources/subprocess_workaround.py | 2 +- debsources/tests/db_testing.py | 2 +- debsources/tests/test_archiver.py | 2 +- debsources/tests/test_stats.py | 2 +- debsources/tests/test_updater.py | 2 +- debsources/tests/test_webapp.py | 4 ++-- debsources/updater.py | 2 +- doc/examples/sample-config.local.ini | 4 ++-- doc/suite-archive.txt | 2 +- etc/config.ini | 4 ++-- etc/crontab | 2 +- setup.py | 4 ++-- 63 files changed, 92 insertions(+), 92 deletions(-) diff --git a/AUTHORS b/AUTHORS index c23bccd..788296a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -53,6 +53,6 @@ Thank you! sources.debian.net ------------------ -The instance of Debsources available at http://sources.debian.net (indexing the -main Debian archive) is currently hosted at [IRILL](http://www.irill.org/) who +The instance of Debsources available at https://sources.debian.net (indexing the +main Debian archive) is currently hosted at [IRILL](https://www.irill.org/) who has kindly offered server, bandwidth, and physical space for it. Thanks! diff --git a/COPYING b/COPYING index dba13ed..be3f7b2 100644 --- a/COPYING +++ b/COPYING @@ -1,7 +1,7 @@ GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. + along with this program. If not, see <https://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. @@ -658,4 +658,4 @@ specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see -<http://www.gnu.org/licenses/>. +<https://www.gnu.org/licenses/>. diff --git a/HACKING b/HACKING index c07ab28..7460dfe 100644 --- a/HACKING +++ b/HACKING @@ -36,7 +36,7 @@ Local Debsources deployment where debsources is the DB name. The last parameter must be a valid SQLAlchemy database URL; see - http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls for + https://sqlalchemy.readthedocs.org/en/latest/core/engines.html#database-urls for details on how to connect to remote databases. - $ cp doc/examples/sample-config.local.ini etc/config.local.ini @@ -85,7 +85,7 @@ All new Debsources code should be [PEP8][1] compliant and pass [pyflakes][2] validation. Before submitting patches, please make sure that the lines of code they touch conform to such requirements. -[1]: http://legacy.python.org/dev/peps/pep-0008/ +[1]: https://www.python.org/dev/peps/pep-0008/ [2]: https://pypi.python.org/pypi/pyflakes If you develop on Debian(-based distros), a good way to check that this is the diff --git a/README b/README index fcaf559..80fb965 100644 --- a/README +++ b/README @@ -25,8 +25,8 @@ Development well (short URL: <http://deb.li/debsrceasy>) [1]: http://git-scm.com/ -[2]: http://anonscm.debian.org/gitweb/?p=qa/debsources.git -[4]: http://lists.debian.org/debian-qa/ +[2]: https://anonscm.debian.org/gitweb/?p=qa/debsources.git +[4]: https://lists.debian.org/debian-qa/ [5]: http://www.oftc.net/ [6]: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=qa.debian.org;tag=debsources [7]: https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=qa.debian.org;include=subject:debsources;[email protected];tag=gift diff --git a/bin/debsources-backup-db b/bin/debsources-backup-db index 6bc4b97..b0dcc9d 100755 --- a/bin/debsources-backup-db +++ b/bin/debsources-backup-db @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. conffile=`python -c 'from debsources import mainlib; print(mainlib.guess_conffile())'` if [ $? -ne 0 ] diff --git a/bin/debsources-dbadmin b/bin/debsources-dbadmin index bc732f9..c61681a 100755 --- a/bin/debsources-dbadmin +++ b/bin/debsources-dbadmin @@ -16,7 +16,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import argparse import time diff --git a/bin/debsources-debian-source-archive b/bin/debsources-debian-source-archive index 23ebd8b..506bdc7 100755 --- a/bin/debsources-debian-source-archive +++ b/bin/debsources-debian-source-archive @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Depends: rsync diff --git a/bin/debsources-debian-source-mirror b/bin/debsources-debian-source-mirror index cdecc3b..1a069f1 100755 --- a/bin/debsources-debian-source-mirror +++ b/bin/debsources-debian-source-mirror @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Depends: debmirror diff --git a/bin/debsources-foreach b/bin/debsources-foreach index fc3e103..ea6a3c0 100755 --- a/bin/debsources-foreach +++ b/bin/debsources-foreach @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Iterate a given command in each unpacked source package dir # diff --git a/bin/debsources-fsck b/bin/debsources-fsck index 9f18a04..cb10de1 100755 --- a/bin/debsources-fsck +++ b/bin/debsources-fsck @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Check for DB/FS inconsistencies diff --git a/bin/debsources-main b/bin/debsources-main index ceb9f52..04d9510 100755 --- a/bin/debsources-main +++ b/bin/debsources-main @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Driver for update runs, both synchronous (e.g. cmdline) and asynchronous # (e.g. cron and pushes) diff --git a/bin/debsources-sloccount b/bin/debsources-sloccount index ed0645b..9d8de6b 100755 --- a/bin/debsources-sloccount +++ b/bin/debsources-sloccount @@ -16,7 +16,7 @@ use strict; # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. my %locs; # global mapping: lang -> lines of code diff --git a/bin/debsources-suite-archive b/bin/debsources-suite-archive index 39edd3c..e254761 100755 --- a/bin/debsources-suite-archive +++ b/bin/debsources-suite-archive @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import argparse import logging diff --git a/bin/debsources-update b/bin/debsources-update index c71f89b..f1ff9c0 100755 --- a/bin/debsources-update +++ b/bin/debsources-update @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import argparse import logging diff --git a/bin/lib.sh b/bin/lib.sh index 1465b06..a235d9a 100644 --- a/bin/lib.sh +++ b/bin/lib.sh @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. verbose="1" diff --git a/contrib/git-pre-commit b/contrib/git-pre-commit index e381b85..714c7b7 100755 --- a/contrib/git-pre-commit +++ b/contrib/git-pre-commit @@ -15,7 +15,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # Depends: python-flake8 diff --git a/debsources/app/app_factory.py b/debsources/app/app_factory.py index 7559805..c2c298f 100644 --- a/debsources/app/app_factory.py +++ b/debsources/app/app_factory.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging from logging import Formatter, FileHandler, StreamHandler diff --git a/debsources/app/extract_stats.py b/debsources/app/extract_stats.py index 6a9fb60..c2740dd 100644 --- a/debsources/app/extract_stats.py +++ b/debsources/app/extract_stats.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. from debsources import statistics diff --git a/debsources/app/forms.py b/debsources/app/forms.py index 99aaccc..2580a20 100644 --- a/debsources/app/forms.py +++ b/debsources/app/forms.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. from wtforms import TextField diff --git a/debsources/app/infobox.py b/debsources/app/infobox.py index 3a20651..cde57c5 100644 --- a/debsources/app/infobox.py +++ b/debsources/app/infobox.py @@ -13,10 +13,10 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. -PTS_PREFIX = "http://tracker.debian.org/pkg/" +PTS_PREFIX = "https://tracker.debian.org/pkg/" # move this to configuration file? # it would add a dependence layer with app.config diff --git a/debsources/app/sourcecode.py b/debsources/app/sourcecode.py index 32debd2..6c9e063 100644 --- a/debsources/app/sourcecode.py +++ b/debsources/app/sourcecode.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. from debsources.filetype import get_highlightjs_language diff --git a/debsources/app/static/css/debian.css b/debsources/app/static/css/debian.css index 05a6a27..b89dfc7 100644 --- a/debsources/app/static/css/debian.css +++ b/debsources/app/static/css/debian.css @@ -1,5 +1,5 @@ /* - http://www.debian.org Stylesheet + https://www.debian.org Stylesheet Copyright 2011 Kalle Söderman @@ -15,7 +15,7 @@ this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - The license text can also be found at http://www.gnu.org/copyleft/gpl.html and + The license text can also be found at https://www.gnu.org/copyleft/gpl.html and /usr/share/common-licenses/GPL-2 on Debian. */ @@ -425,7 +425,7 @@ pre { } tt, code { font-family: monospace; - /* see http://lists.debian.org/debian-www/2011/08/msg00181.html */ + /* see https://lists.debian.org/debian-www/2011/08/msg00181.html */ /* white-space: pre; */ color: black; } diff --git a/debsources/app/static/javascript/debsources.js b/debsources/app/static/javascript/debsources.js index 46bc41a..6c8d2ee 100644 --- a/debsources/app/static/javascript/debsources.js +++ b/debsources/app/static/javascript/debsources.js @@ -13,7 +13,7 @@ * for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /* diff --git a/debsources/app/templates/about.html b/debsources/app/templates/about.html index 0e77b49..d96bd59 100644 --- a/debsources/app/templates/about.html +++ b/debsources/app/templates/about.html @@ -24,7 +24,7 @@ </li> <li>please report <strong>bugs</strong> to - the <a href="//bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=qa.debian.org;tag=debsources">Debian + the <a href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=qa.debian.org;tag=debsources">Debian Bug Tracking System</a> (short URL: <a href="http://deb.li/debsrcbugs"><tt>http://deb.li/debsrcbugs</tt></a>), against the @@ -36,13 +36,13 @@ </li> <li>for discussions about Debsources please <strong>contact</strong> the - <a href="//lists.debian.org/debian-qa/">debian-qa mailing list</a> or + <a href="https://lists.debian.org/debian-qa/">debian-qa mailing list</a> or the <code>#debian-qa</code> IRC channel on <a href="http://www.oftc.net/">OFTC</a> </li> <li>opportunities for new contributors (AKA <strong>easy hacks</strong>) - are <a href="//bugs.debian.org/cgi-bin/pkgreport.cgi?package=qa.debian.org;include=subject:debsources;[email protected];tag=gift">available</a> + are <a href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=qa.debian.org;include=subject:debsources;[email protected];tag=gift">available</a> as well (short URL: <a href="http://deb.li/debsrceasy"><tt>http://deb.li/debsrceasy</tt></a>) </li> @@ -54,9 +54,9 @@ <ul> <li>all Debsources - <a href="//anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD"><b>contributors</b></a> + <a href="https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD"><b>contributors</b></a> for their work</li> - <li><a href="//www.irill.org"><img style="vertical-align: middle;" + <li><a href="https://www.irill.org"><img style="vertical-align: middle;" src="{{ url_for('static', filename='img/irill.png') }}" alt="IRILL" /></a> for sponsoring the initial development of Debsources, and offering both server and hosting facilities that power diff --git a/debsources/app/templates/advanced_search.html b/debsources/app/templates/advanced_search.html index 4883c64..a8fec3e 100644 --- a/debsources/app/templates/advanced_search.html +++ b/debsources/app/templates/advanced_search.html @@ -78,9 +78,9 @@ <span class="description">search all available source code for occurrences of specific features (regex matches, identifiers, etc.)</span> -<h4>via <a href="//codesearch.debian.net/">Debian code search</a></h4> +<h4>via <a href="https://codesearch.debian.net/">Debian code search</a></h4> <form name="codesearch" method="get" - action="//codesearch.debian.net/search"> + action="https://codesearch.debian.net/search"> <table> <tr> <td><label for="input_codesearch">regular expression</label></td> diff --git a/debsources/app/templates/base.html b/debsources/app/templates/base.html index 25b5032..ac4806e 100644 --- a/debsources/app/templates/base.html +++ b/debsources/app/templates/base.html @@ -23,7 +23,7 @@ <header id="header"> <div id="upperheader"> <div id="logo"> - <a href="//debian.org" title="Debian Home"><img src="{{ url_for('static', filename='img/debian-50.png') }}" alt="Debian"></a> + <a href="https://www.debian.org" title="Debian Home"><img src="{{ url_for('static', filename='img/debian-50.png') }}" alt="Debian"></a> </div> <!-- end logo --> <p class="section"><a href="/">Debsources</a></p> <div id="searchbox"> @@ -31,7 +31,7 @@ value=query, placeholder="package name", id="query-1") }} <form name="codesearch" method="get" - action="//codesearch.debian.net/search"> + action="https://codesearch.debian.net/search"> <input name="q" {%- if package %} value="package:{{ package }} " {%- else %} placeholder="code regex" diff --git a/debsources/app/templates/doc.html b/debsources/app/templates/doc.html index fed2599..1f00170 100644 --- a/debsources/app/templates/doc.html +++ b/debsources/app/templates/doc.html @@ -33,12 +33,12 @@ Debsources has been featured in the following scientific papers: of <a href="http://softeng.polito.it/ESEIW2014/ESEM/">ESEM 2014</a>: 8th International Symposium on Empirical Software Engineering and Measurement. September 18-19, 2014 - Torino, Italy.<br /> - <small>ISBN <a href="http://dl.acm.org/citation.cfm?doid=2652524.2652528">978-1-4503-2774-9</a>, + <small>ISBN <a href="https://dl.acm.org/citation.cfm?doid=2652524.2652528">978-1-4503-2774-9</a>, ACM 2014. - DOI <a href="//dx.doi.org/10.1145/2652524.2652528">10.1145/2652524.2652528</a></small> + DOI <a href="https://dx.doi.org/10.1145/2652524.2652528">10.1145/2652524.2652528</a></small> <br /> - <a href="//upsilon.cc/~zack/research/publications/debsources-esem-2014.pdf">.pdf</a>, - <a href="//upsilon.cc/~zack/research/publications/debsources-esem-2014.bib">.bib</a> + <a href="https://upsilon.cc/~zack/research/publications/debsources-esem-2014.pdf">.pdf</a>, + <a href="https://upsilon.cc/~zack/research/publications/debsources-esem-2014.bib">.bib</a> <br /> If you use Debsources or its dataset for research purposes, we would appreciate you cite the above paper. </li> diff --git a/debsources/app/templates/doc_overview.html b/debsources/app/templates/doc_overview.html index 5d2fba2..d0d5b3b 100644 --- a/debsources/app/templates/doc_overview.html +++ b/debsources/app/templates/doc_overview.html @@ -12,18 +12,18 @@ {% block content %} <p>Debsources provides Web access to the source code of - the <a href="//www.debian.org">Debian</a> operating system.</p> + the <a href="https://www.debian.org">Debian</a> operating system.</p> <p>You can <b>browse</b> through the list of available source packages, or search for a particular one based on its name. Multiple versions of each source package are available — currently both versions coming from all official suites available via - the <a href="//www.debian.org/mirror/">Debian mirror network</a>, and + the <a href="https://www.debian.org/mirror/">Debian mirror network</a>, and historical releases from <a href="http://archive.debian.org">archive.debian.org</a> are available.<p> <p>You can also <b>search</b> within the actual source code using regular - expressions via <a href="//codesearch.debian.net/">Debian Code + expressions via <a href="https://codesearch.debian.net/">Debian Code Search</a>; search results will link you back here. Note that Debian Code Search only index the unstable suite and is updated less often than Debsources, so there might be update lags between the two services.</p> diff --git a/debsources/app/templates/footer.inc.html b/debsources/app/templates/footer.inc.html index 0267840..38d83cd 100644 --- a/debsources/app/templates/footer.inc.html +++ b/debsources/app/templates/footer.inc.html @@ -18,10 +18,10 @@ Zacchiroli, and <a href="{{ config.GITWEB_URL }};a=blob;f=AUTHORS;hb=HEAD">contributors</a>. License: - <a href="//www.gnu.org/licenses/agpl.html">GNU AGPLv3</a>. + <a href="https://www.gnu.org/licenses/agpl.html">GNU AGPLv3</a>. <br /> Hosted source files are available under their own - <a href="//www.debian.org/doc/debian-policy/ch-source.html#s-dpkgcopyright">copyright + <a href="https://www.debian.org/doc/debian-policy/ch-source.html#s-dpkgcopyright">copyright and licenses</a>. <br /> Source code: <a href="{{ config.GITWEB_URL }}">Git</a>. diff --git a/debsources/app/templates/index.html b/debsources/app/templates/index.html index 95e7842..8b5e528 100644 --- a/debsources/app/templates/index.html +++ b/debsources/app/templates/index.html @@ -18,10 +18,10 @@ <h1 class="h1mainpage">{{ self.title() }}</h1> <h3><em>All Debian source are belong to us</em>   <small>— Anonymous</small> - <sup><a href="//en.wikipedia.org/wiki/All_your_base_are_belong_to_us"><span style="font-family: monospace; color: black;">[^]</span></a></sup> + <sup><a href="https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us"><span style="font-family: monospace; color: black;">[^]</span></a></sup> </h3> <p>Browse through the source code of the - <a href="//www.debian.org">Debian</a> operating system. + <a href="https://www.debian.org">Debian</a> operating system. <a href="{{ url_for('doc_overview') }}">Read more…</a></p> <table> <tr> @@ -37,9 +37,9 @@ display="inline", size="25", autofocus=True, id="query-2") }} </li> <li>the <em>source code</em> - <small>(via <a href="//codesearch.debian.net">codesearch</a>)</small>:<br /> + <small>(via <a href="https://codesearch.debian.net">codesearch</a>)</small>:<br /> <form name="codesearch" method="get" - action="//codesearch.debian.net/search"> + action="https://codesearch.debian.net/search"> <input type="text" name="q" size="25" /> <input type="submit" value="Search code" /> </form> diff --git a/debsources/app/templates/macros.inc.html b/debsources/app/templates/macros.inc.html index a7a4bcb..e926220 100644 --- a/debsources/app/templates/macros.inc.html +++ b/debsources/app/templates/macros.inc.html @@ -4,7 +4,7 @@ #} {# from -http://pythonhosted.org/Flask-SQLAlchemy/api.html#flask.ext.sqlalchemy.Pagination.iter_pages #} +https://pythonhosted.org/Flask-SQLAlchemy/api.html#flask.ext.sqlalchemy.Pagination.iter_pages #} {% macro render_pagination(pagination) -%} <div class=pagination> {% if pagination.has_prev %} diff --git a/debsources/app/views.py b/debsources/app/views.py index cac7167..3246d42 100644 --- a/debsources/app/views.py +++ b/debsources/app/views.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import os diff --git a/debsources/archiver.py b/debsources/archiver.py index b8ad818..383dd3b 100644 --- a/debsources/archiver.py +++ b/debsources/archiver.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. """handle the archive of sticky suites""" diff --git a/debsources/charts.py b/debsources/charts.py index db1463b..5fe9686 100644 --- a/debsources/charts.py +++ b/debsources/charts.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import matplotlib diff --git a/debsources/consts.py b/debsources/consts.py index 665b4c4..c63b4a8 100644 --- a/debsources/consts.py +++ b/debsources/consts.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import datetime @@ -27,7 +27,7 @@ import datetime MAX_KEY_LENGTH = 8000 # this list should be kept in sync with -# http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-VCS-fields +# https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-VCS-fields VCS_TYPES = ("arch", "bzr", "cvs", "darcs", "git", "hg", "mtn", "svn") # this list should be kept in sync with languages supported by sloccount. A diff --git a/debsources/db_storage.py b/debsources/db_storage.py index e64bb47..ed6d177 100644 --- a/debsources/db_storage.py +++ b/debsources/db_storage.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging diff --git a/debsources/debmirror.py b/debsources/debmirror.py index ab4dc49..0ce81ba 100644 --- a/debsources/debmirror.py +++ b/debsources/debmirror.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/excepts.py b/debsources/excepts.py index f962395..45159e8 100644 --- a/debsources/excepts.py +++ b/debsources/excepts.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. class InvalidPackageOrVersionError(ValueError): diff --git a/debsources/filetype.py b/debsources/filetype.py index 02792cc..4810b3e 100644 --- a/debsources/filetype.py +++ b/debsources/filetype.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import re diff --git a/debsources/fs_storage.py b/debsources/fs_storage.py index 2b3fbd3..d13c309 100644 --- a/debsources/fs_storage.py +++ b/debsources/fs_storage.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/hashutil.py b/debsources/hashutil.py index 7f86489..74c4cd6 100644 --- a/debsources/hashutil.py +++ b/debsources/hashutil.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import hashlib diff --git a/debsources/local_info.py b/debsources/local_info.py index 4c696af..7757b42 100644 --- a/debsources/local_info.py +++ b/debsources/local_info.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import os diff --git a/debsources/mainlib.py b/debsources/mainlib.py index 3b93953..45a206b 100644 --- a/debsources/mainlib.py +++ b/debsources/mainlib.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import ConfigParser as configparser import importlib diff --git a/debsources/models.py b/debsources/models.py index 0b3b515..74e6782 100644 --- a/debsources/models.py +++ b/debsources/models.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import os import magic @@ -99,7 +99,7 @@ class PackageName(Base): returns versions with suites """ # FIXME a left outer join on (Package, Suite) is more preferred. - # However, per http://stackoverflow.com/a/997467, custom aggregation + # However, per https://stackoverflow.com/a/997467, custom aggregation # function to concatenate the suite names for the group_by should be # defined on database connection level. versions = PackageName.list_versions(session, packagename) diff --git a/debsources/plugins/hook_checksums.py b/debsources/plugins/hook_checksums.py index f04e5f5..1f6e249 100644 --- a/debsources/plugins/hook_checksums.py +++ b/debsources/plugins/hook_checksums.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/plugins/hook_ctags.py b/debsources/plugins/hook_ctags.py index 07e9a32..ade2bdd 100644 --- a/debsources/plugins/hook_ctags.py +++ b/debsources/plugins/hook_ctags.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/plugins/hook_hello.py b/debsources/plugins/hook_hello.py index efaf8b7..364d9e4 100644 --- a/debsources/plugins/hook_hello.py +++ b/debsources/plugins/hook_hello.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging diff --git a/debsources/plugins/hook_metrics.py b/debsources/plugins/hook_metrics.py index d98d274..98ce28e 100644 --- a/debsources/plugins/hook_metrics.py +++ b/debsources/plugins/hook_metrics.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/plugins/hook_sloccount.py b/debsources/plugins/hook_sloccount.py index 3129dbe..62f2fe0 100644 --- a/debsources/plugins/hook_sloccount.py +++ b/debsources/plugins/hook_sloccount.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/sqla_session.py b/debsources/sqla_session.py index d0fa98f..f8aa2c6 100644 --- a/debsources/sqla_session.py +++ b/debsources/sqla_session.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. from sqlalchemy import create_engine diff --git a/debsources/statistics.py b/debsources/statistics.py index 470a1e9..b7a7127 100644 --- a/debsources/statistics.py +++ b/debsources/statistics.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. """Compute several statistics about Debsouces content diff --git a/debsources/subprocess_workaround.py b/debsources/subprocess_workaround.py index 7224586..a172fc8 100644 --- a/debsources/subprocess_workaround.py +++ b/debsources/subprocess_workaround.py @@ -3,7 +3,7 @@ import signal def subprocess_setup(): - """SIGPIPE handling work-around. See http://bugs.python.org/issue1652 + """SIGPIPE handling work-around. See https://bugs.python.org/issue1652 """ signal.signal(signal.SIGPIPE, signal.SIG_DFL) diff --git a/debsources/tests/db_testing.py b/debsources/tests/db_testing.py index c2a592b..c0ae2b8 100644 --- a/debsources/tests/db_testing.py +++ b/debsources/tests/db_testing.py @@ -14,7 +14,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import os import sqlalchemy diff --git a/debsources/tests/test_archiver.py b/debsources/tests/test_archiver.py index 6e5ef80..a47bf83 100644 --- a/debsources/tests/test_archiver.py +++ b/debsources/tests/test_archiver.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import logging import os diff --git a/debsources/tests/test_stats.py b/debsources/tests/test_stats.py index f3f1984..521cf0c 100644 --- a/debsources/tests/test_stats.py +++ b/debsources/tests/test_stats.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import unittest diff --git a/debsources/tests/test_updater.py b/debsources/tests/test_updater.py index ba4a26d..aaee949 100644 --- a/debsources/tests/test_updater.py +++ b/debsources/tests/test_updater.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import glob import logging diff --git a/debsources/tests/test_webapp.py b/debsources/tests/test_webapp.py index 856b5c3..173258f 100644 --- a/debsources/tests/test_webapp.py +++ b/debsources/tests/test_webapp.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import unittest import json @@ -264,7 +264,7 @@ class DebsourcesTestCase(unittest.TestCase, DbTestFixture): self.assertEqual(rv["pkg_infos"]["vcs_browser"], p) self.assertEqual(rv["pkg_infos"]["vcs_type"], "svn") self.assertEqual(rv["pkg_infos"]["pts_link"], - "http://tracker.debian.org/pkg/libcaca") + "https://tracker.debian.org/pkg/libcaca") self.assertEqual(rv["pkg_infos"]["ctags_count"], 3145) def test_pkg_infobox_embed(self): diff --git a/debsources/updater.py b/debsources/updater.py index f3ae6e5..df8f082 100644 --- a/debsources/updater.py +++ b/debsources/updater.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import glob import logging diff --git a/doc/examples/sample-config.local.ini b/doc/examples/sample-config.local.ini index 00339c0..96973d6 100644 --- a/doc/examples/sample-config.local.ini +++ b/doc/examples/sample-config.local.ini @@ -32,7 +32,7 @@ log_file: %(log_dir)s/debsources.log domain: sources.debian.net # link to Debsources source code (might be changed for, e.g., AGPL compliance) -gitweb_url: http://anonscm.debian.org/gitweb/?p=qa/debsources.git +gitweb_url: https://anonscm.debian.org/gitweb/?p=qa/debsources.git # the secret key for session signing # secret_key: some_hash # not in use @@ -54,7 +54,7 @@ highlight_js_folder: /javascript/highlight dir_ls_long: true # CSS style for highlight.js -# see http://softwaremaniacs.org/media/soft/highlight/test.html +# see https://highlightjs.org/static/demo/ # highlight_style: default highlight_style: googlecode diff --git a/doc/suite-archive.txt b/doc/suite-archive.txt index 58638ab..6428506 100644 --- a/doc/suite-archive.txt +++ b/doc/suite-archive.txt @@ -36,4 +36,4 @@ version name release date pkgs pkgs notes 7 wheezy 4 May 2013 ~37,000 ~17,600 Sources, pool, .dsc -(some data from http://en.wikipedia.org/wiki/Debian#Timeline) +(some data from https://en.wikipedia.org/wiki/Debian#Timeline) diff --git a/etc/config.ini b/etc/config.ini index 91af288..07c896b 100644 --- a/etc/config.ini +++ b/etc/config.ini @@ -36,7 +36,7 @@ log_file: %(log_dir)s/debsources.log domain: sources.debian.net # link to Debsources source code (might be changed for, e.g., AGPL compliance) -gitweb_url: http://anonscm.debian.org/gitweb/?p=qa/debsources.git +gitweb_url: https://anonscm.debian.org/gitweb/?p=qa/debsources.git # the secret key for session signing # secret_key: some_hash # not in use @@ -58,7 +58,7 @@ highlight_js_folder: /javascript/highlight dir_ls_long: true # CSS style for highlight.js -# see http://softwaremaniacs.org/media/soft/highlight/test.html +# see https://highlightjs.org/static/demo/ # highlight_style: default highlight_style: googlecode diff --git a/etc/crontab b/etc/crontab index 3cfea59..3e19936 100644 --- a/etc/crontab +++ b/etc/crontab @@ -6,7 +6,7 @@ DEBSRC=/srv/debsources # one for codesearch.d.n, just in case. # # 4 runs a day, ideally after the mirror network has stabilized. -# # See http://ftp-master.debian.org/#dinstall for the big bang reference. +# # See https://ftp-master.debian.org/#dinstall for the big bang reference. # 1 4,10,16,22 * * * debsources $DEBSRC/bin/debsources-main # Extra run on Friday, for synchronization with codesearch.d.n, just in case diff --git a/setup.py b/setup.py index e1098f5..fa9d680 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ # details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. import glob from setuptools import setup, find_packages @@ -40,6 +40,6 @@ setup( long_description=long_description, description=description, license="AGPL3+", - url="http://anonscm.debian.org/gitweb/?p=qa/debsources.git", + url="https://anonscm.debian.org/gitweb/?p=qa/debsources.git", platforms=['any'], ) -- 2.1.4

