15 years agoRemove some unneeded includes
Frank Lichtenheld [Sat, 20 Oct 2007 19:45:06 +0000 (21:45 +0200)]
Remove some unneeded includes

Some copy&paste leftovers probably.

15 years agoPackages::Template: Make one error message internal
Frank Lichtenheld [Sat, 20 Oct 2007 19:43:33 +0000 (21:43 +0200)]
Packages::Template: Make one error message internal

If initialisation of the TT engine fails, near to nothing
has a chance to work, so no need to try to convey this to
the user and no need to translate this string.

15 years agoPackages::DoIndex: Fix typo in error message
Frank Lichtenheld [Sat, 20 Oct 2007 19:42:05 +0000 (21:42 +0200)]
Packages::DoIndex: Fix typo in error message


15 years ago500update_mo: Only update .po and .pot files if needed
Frank Lichtenheld [Sat, 20 Oct 2007 19:24:08 +0000 (21:24 +0200)]
500update_mo: Only update .po and .pot files if needed

Don't create unneccessary diffs.

15 years agoAlways show polangs in footer
Frank Lichtenheld [Sat, 20 Oct 2007 17:16:23 +0000 (19:16 +0200)]
Always show polangs in footer

Since we have now working l10n support, we should at least
offer all polangs as alternatives. This is not fully ideal
since for some languages we only have translations for a
few templates, but everything else is probably too complicated.

15 years agoPackages::Search: ignore empty keywords after stemming
Frank Lichtenheld [Sat, 20 Oct 2007 17:12:14 +0000 (19:12 +0200)]
Packages::Search: ignore empty keywords after stemming

Stemming can output empty strings, e.g. for numbers.
Ignore these.

Reported by Cyril Jaquier <cyril jaquier -at- jaqpot net>

15 years, html/search.tmpl: Improve msgids that were hard to localize.
Noritada Kobayashi [Sat, 20 Oct 2007 18:53:20 +0000 (03:53 +0900)], html/search.tmpl: Improve msgids that were hard to localize.

15 years agoUpdate Japanese po files.
Noritada Kobayashi [Sat, 20 Oct 2007 17:58:11 +0000 (02:58 +0900)]
Update Japanese po files.

Current status:
- langs.ja.po: 37t+49o
- pdo.ja.po: 22t+11u
- sections.ja.po: 72t
- templates.ja.po: 203t+1u

15 years agoFix a mistake in templates.ja.po.
Noritada Kobayashi [Sat, 20 Oct 2007 17:12:04 +0000 (02:12 +0900)]
Fix a mistake in templates.ja.po.

When some format specifiers are reordered in a msgstr, it would be
better to specify ordering for all format specifiers in that msgstr to
avoid making mistakes.

15 years agohtml/show.tmpl: Mark some more translatable string
Frank Lichtenheld [Fri, 19 Oct 2007 22:32:31 +0000 (00:32 +0200)]
html/show.tmpl: Mark some more translatable string

15 years agoUpdates and corrections to the German translation
Frank Lichtenheld [Fri, 19 Oct 2007 22:15:37 +0000 (00:15 +0200)]
Updates and corrections to the German translation

15 years agoUpdate all .po and .pot files
Frank Lichtenheld [Fri, 19 Oct 2007 21:46:10 +0000 (23:46 +0200)]
Update all .po and .pot files

Also remove old translations from
There is no real chance of them getting back
(since they all moved to templates)

15 years agohtml/show.tmpl: Translate a missing string
Frank Lichtenheld [Fri, 19 Oct 2007 21:41:39 +0000 (23:41 +0200)]
html/show.tmpl: Translate a missing string

"Download $pkg" was not marked as translatable.
(Found while testing the Japanese translation)

15 years Add Japanese to polangs
Frank Lichtenheld [Fri, 19 Oct 2007 21:38:59 +0000 (23:38 +0200)] Add Japanese to polangs

15 years agoAdd Japanese po files.
Noritada Kobayashi [Fri, 19 Oct 2007 19:38:01 +0000 (04:38 +0900)]
Add Japanese po files.

Current status:
- langs.ja.po: 37t+49o
- pdo.ja.po: 3t+30u
- sections.ja.po: 22t+50u
- templates.ja.po: 202t+1u

15 years agoMerge branch 'master' of git://
Noritada Kobayashi [Fri, 19 Oct 2007 12:22:17 +0000 (21:22 +0900)]
Merge branch 'master' of git://

15 years agoFix a typo in a template: "$filename.file" -> "filename.file".
Noritada Kobayashi [Fri, 19 Oct 2007 12:18:10 +0000 (21:18 +0900)]
Fix a typo in a template: "$filename.file" -> "filename.file".

15 years agoActually use langs.*.po
Frank Lichtenheld [Thu, 18 Oct 2007 21:00:07 +0000 (23:00 +0200)]
Actually use langs.*.po

Add two missing bindtextdomain calls so that
gettext can actually find the translations from
the langs domain.

15 years agoAdd Hungarian translation (sections+langs)
Frank Lichtenheld [Thu, 18 Oct 2007 20:53:45 +0000 (22:53 +0200)]
Add Hungarian translation (sections+langs) by SZERVÁC Attila <sas -at- 321 hu> from webwml/

15 years ago500update_mo: Hardcode list of gettext files
Frank Lichtenheld [Thu, 18 Oct 2007 20:24:00 +0000 (22:24 +0200)]
500update_mo: Hardcode list of gettext files

Random crap in my working copy shouldn't influence the

15 years agosections.*.po: Remove old non-US translations
Frank Lichtenheld [Thu, 18 Oct 2007 20:10:16 +0000 (22:10 +0200)]
sections.*.po: Remove old non-US translations

These strings will not come back anytime soon, so no need to
bloat the files and sometimes the diffs with that stuff.

15 years agoMerge commit 'alioth/master'
Frank Lichtenheld [Thu, 18 Oct 2007 20:04:00 +0000 (22:04 +0200)]
Merge commit 'alioth/master'

15 years agoUpdated Finnish translation
Tommi Vainikainen [Thu, 18 Oct 2007 19:08:26 +0000 (22:08 +0300)]
Updated Finnish translation

15 years ago050checkinst: Actually include
Frank Lichtenheld [Wed, 17 Oct 2007 22:34:59 +0000 (00:34 +0200)]
050checkinst: Actually include

Otherwise trying to send email to $admin_email which
is defined there proves to be difficult.

15 years agorss/newpkg.tmpl: HTML escape package description
Frank Lichtenheld [Wed, 17 Oct 2007 21:34:09 +0000 (23:34 +0200)]
rss/newpkg.tmpl: HTML escape package description

Reported by Andreas Juch <andreas.juch -at- tele2 at>

15 years agoParse::DebianChangelog: update to 1.1.1
Frank Lichtenheld [Wed, 17 Oct 2007 21:28:43 +0000 (23:28 +0200)]
Parse::DebianChangelog: update to 1.1.1

No real (for us) useful changes. But lets not diverge too much.

15 years agoshow.tmpl: Fix template syntax
Frank Lichtenheld [Sun, 14 Oct 2007 21:59:23 +0000 (23:59 +0200)]
show.tmpl: Fix template syntax

Introduced by the gettext changes.

Noticed by Simon Paillard

15 years agoUpdate all .po and .pot files
Frank Lichtenheld [Sun, 14 Oct 2007 01:26:02 +0000 (03:26 +0200)]
Update all .po and .pot files

Much cruft left in the .po files, but it is probably better
if the translators clean that up.

15 years agoMerge commit 'alioth/master'
Frank Lichtenheld [Sun, 14 Oct 2007 01:20:10 +0000 (03:20 +0200)]
Merge commit 'alioth/master'

15 years agoMake all remaining templates translatable
Frank Lichtenheld [Sun, 14 Oct 2007 01:09:30 +0000 (03:09 +0200)]
Make all remaining templates translatable

15 years agoMove common functions for template use to Packages::Template
Frank Lichtenheld [Sun, 14 Oct 2007 01:08:22 +0000 (03:08 +0200)]
Move common functions for template use to Packages::Template

Previously they were duplicated in every caller which was
very error prone.

15 years agottxgettext: Handle UTF-8 input
Frank Lichtenheld [Sat, 13 Oct 2007 23:42:27 +0000 (01:42 +0200)]
ttxgettext: Handle UTF-8 input

We need this e.g. for non-ASCII chars in the txt templates.
For HTML it should be easier to use entities for that.

15 years agoMake all index pages translatable
Frank Lichtenheld [Sat, 13 Oct 2007 23:30:17 +0000 (01:30 +0200)]
Make all index pages translatable

15 years agoPackages::Template: Add target parameter to page method
Frank Lichtenheld [Sat, 13 Oct 2007 23:24:49 +0000 (01:24 +0200)]
Packages::Template: Add target parameter to page method

This makes it easier to use this in create_index_pages since
we can save all the filehandle handling.

15 years agoMake HTML shared templates translatable
Frank Lichtenheld [Sat, 13 Oct 2007 22:13:26 +0000 (00:13 +0200)]
Make HTML shared templates translatable

15 years agoMake config templates translatable
Frank Lichtenheld [Sat, 13 Oct 2007 22:10:23 +0000 (00:10 +0200)]
Make config templates translatable

While I'm on it, also remove some Debian hardcoding where possible.

15 years agoAdd L10N support for Template Toolkit output
Frank Lichtenheld [Sat, 13 Oct 2007 21:58:55 +0000 (23:58 +0200)]
Add L10N support for Template Toolkit output

These go to a new templates domain, to not have to mix
xgettext and ttxgettext input for the same .pot file.

15 years agottxgettext: copy from webwml/
Frank Lichtenheld [Sat, 13 Oct 2007 21:54:53 +0000 (23:54 +0200)]
ttxgettext: copy from webwml/

Tests have shown that gettext's xgettext doesn't cope well with
the Template Toolkit syntax. Use the xgettext replacement from
the Debian website as a template for a own program.

15 years agocreate_index_pages: Fix charset
Frank Lichtenheld [Sat, 13 Oct 2007 15:38:39 +0000 (17:38 +0200)]
create_index_pages: Fix charset

charset was set by get_locale, which is obviously

Reported by Tommi Vainikainen <thv -at- iki fi>

15 years agoapache.conf: All pages are sent with charset UTF-8 nowadays
Frank Lichtenheld [Sat, 13 Oct 2007 15:25:08 +0000 (17:25 +0200)]
apache.conf: All pages are sent with charset UTF-8 nowadays

15 years agoUpdate Finnish translation
Tommi Vainikainen [Fri, 12 Oct 2007 14:50:23 +0000 (17:50 +0300)]
Update Finnish translation

15 years agoMerge branch 'master' of ssh://source/srv/
Frank Lichtenheld [Fri, 12 Oct 2007 01:54:57 +0000 (03:54 +0200)]
Merge branch 'master' of ssh://source/srv/

15 years agoREADME: Add
Frank Lichtenheld [Fri, 12 Oct 2007 01:12:37 +0000 (03:12 +0200)]

Gives some terse information about what code does what.
Still greatly expandable.

15 years agoparse-contents: Update progress approximation
Frank Lichtenheld [Mon, 8 Oct 2007 02:23:45 +0000 (04:23 +0200)]
parse-contents: Update progress approximation

Make them at least partly match reality...

15 years agosections.*.po: Update
Frank Lichtenheld [Mon, 8 Oct 2007 02:22:24 +0000 (04:22 +0200)]
sections.*.po: Update

15 years agoparse-contents: Fix display of progress
Frank Lichtenheld [Mon, 8 Oct 2007 01:37:54 +0000 (03:37 +0200)]
parse-contents: Fix display of progress

Files without header did confuse the line numbers

15 years agoPackages::Dispatcher: Fix some formatting issues
Frank Lichtenheld [Mon, 8 Oct 2007 00:17:44 +0000 (02:17 +0200)]
Packages::Dispatcher: Fix some formatting issues

While Perl has no problems with keywords as hash keys,
the emacs perl mode has. Quote them and fix some whitespace
oddities that were caused by this issue.

15 years agoDon't try to output html in error/debug messages
Frank Lichtenheld [Sun, 7 Oct 2007 20:18:36 +0000 (22:18 +0200)]
Don't try to output html in error/debug messages

15 years agopackages-site.css: Remove some remaining occourences of (old)stable
Frank Lichtenheld [Sun, 7 Oct 2007 20:15:12 +0000 (22:15 +0200)]
packages-site.css: Remove some remaining occourences of (old)stable

15 years agoPackages::CGI: Remove support for msgs and notes
Frank Lichtenheld [Sun, 7 Oct 2007 20:14:00 +0000 (22:14 +0200)]
Packages::CGI: Remove support for msgs and notes

Unused code.

15 years agocontents search: Give result in correct case
Frank Lichtenheld [Sun, 7 Oct 2007 15:58:33 +0000 (17:58 +0200)]
contents search: Give result in correct case

While we do the searches case insensitive our file systems are not
so the results should reflect the correct filename.

Noticed by Christoph Berg <myon -at- debian org>
Reported as Debian Bug#445628

15 years ago050checkinst: replace subversion with git-core
Frank Lichtenheld [Sun, 7 Oct 2007 15:52:49 +0000 (17:52 +0200)]
050checkinst: replace subversion with git-core


16 years agohtml/messages.tmpl: Fix XSS vulneralibility
Frank Lichtenheld [Tue, 18 Sep 2007 21:11:57 +0000 (23:11 +0200)]
html/messages.tmpl: Fix XSS vulneralibility

Noted by Moritz Naumann <security -at- moritz-naumann com>

Since error messages can contain user content, escape them
for display.

16 years Update
Frank Lichtenheld [Tue, 18 Sep 2007 18:46:31 +0000 (20:46 +0200)] Update

Also convert files to UTF-8

16 years agoPackages::I18N::LanguageNames: Misc. fixes
Frank Lichtenheld [Tue, 18 Sep 2007 18:45:11 +0000 (20:45 +0200)]
Packages::I18N::LanguageNames: Misc. fixes

- Use names for variants of Chinese from webwml
- Turns out xgettext doesn't like tr as hash key
  (probably confuses it with tr operator), so quote

16 years agoPackages::Sections: Add translations section
Frank Lichtenheld [Tue, 18 Sep 2007 17:03:27 +0000 (19:03 +0200)]
Packages::Sections: Add translations section

While this is only used by Ubuntu atm, it is still useful
to have in the master branch to not have to deal with different
sections.pot files on the different branches.

16 years agosections.pot: Update for non-US support removal
Frank Lichtenheld [Tue, 18 Sep 2007 16:46:47 +0000 (18:46 +0200)]
sections.pot: Update for non-US support removal

16 years agoPackages::I18N::LanguageNames: Sync with
Frank Lichtenheld [Tue, 18 Sep 2007 16:44:58 +0000 (18:44 +0200)]
Packages::I18N::LanguageNames: Sync with

16 years agoPackages::I18N::Languages: Sync with webwml/english/template/debian/languages.wml
Frank Lichtenheld [Tue, 18 Sep 2007 16:28:27 +0000 (18:28 +0200)]
Packages::I18N::Languages: Sync with webwml/english/template/debian/languages.wml

Includes the following changes:
revision 1.141
date: 2007-04-22 00:37:25 +0200;  author: jseidel;  state: Exp;  lines: +3 -0
Added Persian, thanks Abbas Esmaeeli Some'eh <>
revision 1.140
date: 2005-08-13 00:36:22 +0200;  author: djpig;  state: Exp;  lines: +2 -1
Add native name of Armenian and latin transliteration
revision 1.139
date: 2005-08-12 15:40:53 +0200;  author: djpig;  state: Exp;  lines: +1 -0
Add dummy entry for Armenian to %selflang since this is needed to let
it appear in the language list in the footer
revision 1.138
date: 2005-08-12 15:19:54 +0200;  author: djpig;  state: Exp;  lines: +1 -0
Add armenian

16 years agoPackages::DoSearchContents: Avoid breaking the grep pipe
Frank Lichtenheld [Tue, 18 Sep 2007 16:04:24 +0000 (18:04 +0200)]
Packages::DoSearchContents: Avoid breaking the grep pipe

Since grep doesn't handle SIGPIPE in any sane way but instead
clutters the error.log with useless comments like
"grep: writing output: Broken pipe" for each and every line it
wants to write, lets make it happy and read all the stuff in even
if we don't use it.

16 years agoMerge branch 'master' of ssh://source/srv/
Frank Lichtenheld [Tue, 18 Sep 2007 16:00:34 +0000 (18:00 +0200)]
Merge branch 'master' of ssh://source/srv/

16 years agoTODO: misc. updates
Frank Lichtenheld [Tue, 18 Sep 2007 15:32:00 +0000 (17:32 +0200)]
TODO: misc. updates

16 years agoINSTALL: document example crontab
Frank Lichtenheld [Sat, 15 Sep 2007 02:25:27 +0000 (04:25 +0200)]
INSTALL: document example crontab

Also mention that it is actually better to trigger the script
by archive updates instead of running it at fixed times.

16 years agoAdd example crontab
Frank Lichtenheld [Sat, 15 Sep 2007 02:24:11 +0000 (04:24 +0200)]
Add example crontab

16 years agoconfig/mirrors.tmpl: Add mirror_list URLs for amd64 and gnuab
Frank Lichtenheld [Fri, 14 Sep 2007 21:34:24 +0000 (23:34 +0200)]
config/mirrors.tmpl: Add mirror_list URLs for amd64 and gnuab

16 years agoconfig/mirrors.tmpl: Mirror list maintainance
Frank Lichtenheld [Fri, 14 Sep 2007 21:29:00 +0000 (23:29 +0200)]
config/mirrors.tmpl: Mirror list maintainance

Updated mirror lists of backports, amd64 and gnuab.

16 years agocreate_index_pages: Make common functions available to all templates
Frank Lichtenheld [Fri, 14 Sep 2007 20:35:16 +0000 (22:35 +0200)]
create_index_pages: Make common functions available to all templates

The common functions were only available in suite_index.tmpl, but not
in index.tmpl. Fix that by giving them to the initial Packages::Template->new

16 years agohtml/index.tmpl: Fix "Source" link in the navigation bar
Frank Lichtenheld [Fri, 14 Sep 2007 20:33:14 +0000 (22:33 +0200)]
html/index.tmpl: Fix "Source" link in the navigation bar

- the conditional to test is $is_source, not $source
- the correct parameter for make_url is 'source', not $source

16 years agohtml/search*.tmpl: Improve <title> tags
Frank Lichtenheld [Fri, 14 Sep 2007 19:31:51 +0000 (21:31 +0200)]
html/search*.tmpl: Improve <title> tags

- Remove $organisation (in case of search.tmpl even hardcoded
  to Debian) since that gets added in head.tmpl anyway
- Add keywords

16 years agohtml/download.tmpl: Include filename in <title> tag
Frank Lichtenheld [Fri, 14 Sep 2007 19:29:54 +0000 (21:29 +0200)]
html/download.tmpl: Include filename in <title> tag

16 years agoAdd a basic installation guide as INSTALL
Frank Lichtenheld [Fri, 14 Sep 2007 14:58:45 +0000 (16:58 +0200)]
Add a basic installation guide as INSTALL

16 years agoAdd bin/daily to .gitignore
Frank Lichtenheld [Wed, 12 Sep 2007 22:45:08 +0000 (00:45 +0200)]
Add bin/daily to .gitignore

This script is now generated by bin/setup-site

16 years ago600prepare_newpkg: Forgot one s/unstable/sid/
Frank Lichtenheld [Wed, 12 Sep 2007 22:44:21 +0000 (00:44 +0200)]
600prepare_newpkg: Forgot one s/unstable/sid/

16 years agohtml/show.tmpl: Improve the dependency legend
Frank Lichtenheld [Sun, 9 Sep 2007 12:28:55 +0000 (14:28 +0200)]
html/show.tmpl: Improve the dependency legend

Suggested by MJ Ray <mjr -at- phonecoop coop>

Directly imitate the dependency listing in the legend
by using <ul><li> inside the table cells. This makes the
legend autoadjust to any changes in the CSS for the dependency
listing and mirrors the appearance completly.

16 years agohtml/show.tmpl: Improve dependency list readability for blind people
Frank Lichtenheld [Sun, 9 Sep 2007 01:06:55 +0000 (03:06 +0200)]
html/show.tmpl: Improve dependency list readability for blind people

Suggested by Richard Atterer <richard -at- 2007 atterer net>

Use @media to define .visual/.nonvisual to be used instead of the
slightly broken hidecss. Replace <img> by <span> since we don't intend
to show images here most of the time anyway.

Also let the list-style-type differ so that people can see the difference
even without images.

16 years agoTemplates: Also display the suite's alias name in selected places
Frank Lichtenheld [Wed, 12 Sep 2007 00:12:56 +0000 (02:12 +0200)]
Templates: Also display the suite's alias name in selected places

16 years agohtml/show.tmpl: Improve Homepage link
Frank Lichtenheld [Tue, 11 Sep 2007 23:46:49 +0000 (01:46 +0200)]
html/show.tmpl: Improve Homepage link

Enclose in <ul> to make it more consistent with other links.
Use the word "Homepage" as the link and only note the hostname
(think slashdot).

Also fix the handling of the legacy Url field

16 years agoPackages::Search: Fix fallback suites
Frank Lichtenheld [Tue, 11 Sep 2007 23:43:41 +0000 (01:43 +0200)]
Packages::Search: Fix fallback suites

Leftover from the codenames move.

16 years agohtml/index.tmpl: Fix listing of providers
Frank Lichtenheld [Tue, 11 Sep 2007 23:42:54 +0000 (01:42 +0200)]
html/index.tmpl: Fix listing of providers

The commas were missing.

16 years agosetup-site: Use cp -p and sed -i instead of just sed old > new
Frank Lichtenheld [Tue, 11 Sep 2007 16:57:47 +0000 (18:57 +0200)]
setup-site: Use cp -p and sed -i instead of just sed old > new

This lets us easily preserve the modes of the original file
which might be important for executables and private files.

16 years agodaily: Rename to to be able to use %TOPDIR%
Frank Lichtenheld [Tue, 11 Sep 2007 16:52:37 +0000 (18:52 +0200)]
daily: Rename to to be able to use %TOPDIR%

This makes the script independent from where it is called
from, which is a good thing for something called from cronjobs
and the like.

16 years agodaily: Simplify and reduce lockfile wait
Frank Lichtenheld [Tue, 11 Sep 2007 16:47:57 +0000 (18:47 +0200)]
daily: Simplify and reduce lockfile wait

Use exec for redirecting the output to a log file
instead of manually redirecting every command's output.

Reduce the lockfile wait times from 50 minutes each to 10
minutes each. With the new, faster cron job it is unlikely we
want to queue the jobs anyway.

16 years agobuild-maintainerdb: Send copy of mails to the PTS
Joerg Jaspert [Tue, 11 Sep 2007 15:36:46 +0000 (17:36 +0200)]
build-maintainerdb: Send copy of mails to the PTS

They go to the 'contact' keyword.
Also disable the old short alias code. That produces mostly
garbage addresses and isn't documented anyway.

16 years agotxt/index.tmpl: Add missing ']'
Frank Lichtenheld [Tue, 11 Sep 2007 15:30:09 +0000 (17:30 +0200)]
txt/index.tmpl: Add missing ']'

16 years agohtml/show.tmpl: Disable experimental Javascript tabbing
Frank Lichtenheld [Sun, 2 Sep 2007 23:44:30 +0000 (23:44 +0000)]
html/show.tmpl: Disable experimental Javascript tabbing
(cherry picked from commit b9b77c7ca23d56a4b43c4c497bc739a96ca504a6)

16 years agohtml/show.tmpl: Improve display of VCS-* information
Frank Lichtenheld [Tue, 11 Sep 2007 15:24:21 +0000 (17:24 +0200)]
html/show.tmpl: Improve display of VCS-* information

Suggested by Joey Hess <>

Move the detailed VCS-* links below the download table as
these can get very long, and since the URIs can't be
broken, this may make the sidebar very huge and ugly.

Still leave the links available in the sidebar but
don't display the URIs themselves.

16 years agohtml/show.tmpl: Always use <ul> for Maintainers
Frank Lichtenheld [Tue, 11 Sep 2007 15:19:53 +0000 (17:19 +0200)]
html/show.tmpl: Always use <ul> for Maintainers

Even if we only have one. Just makes for a more consistent

16 years agoComment clean-up: Remove $Id$, fix FSF address, copyright years
Frank Lichtenheld [Tue, 11 Sep 2007 15:02:41 +0000 (17:02 +0200)]
Comment clean-up: Remove $Id$, fix FSF address, copyright years

- Remove $Id$ since we don't use them with git
- Fix some old (and some really old) references to the FSF
- Update some copyright years
- Add myself to some files as copyright holder

16 years agoDeb::Versions: Fix a bug introduces by ~ handling
Frank Lichtenheld [Tue, 11 Sep 2007 14:59:16 +0000 (16:59 +0200)]
Deb::Versions: Fix a bug introduces by ~ handling

708b1364be58c9b921cc3838d7ed5f5b48959d78 fixed the handling
of ~ but broke the handling of comparing a "normal" letter
with the empty string. A letter sorts earlier than all
non-letter except ~, but of course not earlier as the empty string.

16 years ago100syncarchive: Really fix retrieval of Release(.gpg) files
Frank Lichtenheld [Tue, 11 Sep 2007 14:54:56 +0000 (16:54 +0200)]
100syncarchive: Really fix retrieval of Release(.gpg) files

7f261c49b0b932c5cf04b107bac3bc8aad5f642c attempted to fix the
retrieval of the Release(.gpg) files from a local mirror but
really didn't because it didn't accounted for the chdir before
the rsync call. Really fix it this time y removing the chdir.

16 years agoPackages::Page: Support homepage field
Frank Lichtenheld [Tue, 11 Sep 2007 12:27:45 +0000 (14:27 +0200)]
Packages::Page: Support homepage field

Superseeds the old, stupid url field.
Also display it in html/show.tmpl

16 years agohtml/foot.tmpl: Fix display of language footer
Frank Lichtenheld [Sun, 9 Sep 2007 14:42:26 +0000 (16:42 +0200)]
html/foot.tmpl: Fix display of language footer

Since some variables are not defined in all loop iterations we
can not use the short syntax.

16 years agoPackages::DoIndex: Ugly hack to fix content negotiation
Frank Lichtenheld [Sun, 9 Sep 2007 14:25:35 +0000 (16:25 +0200)]
Packages::DoIndex: Ugly hack to fix content negotiation

Since we don't create the static pages for ddtplangs currently,
only for polangs, but we don't discriminate between the two in
the content negotiation we might try to serve a non-existant file.

Fixing the content negoation or the static file generation will
take some time and testing. For now, work around the bug by stat'ing
the requested file in DoIndex and falling back to English in case it doesn't

16 years agoVarious improvements of DDTP support
Frank Lichtenheld [Sun, 9 Sep 2007 14:21:48 +0000 (16:21 +0200)]
Various improvements of DDTP support

Update list of ddtp languages to the ones available on
Fix typo in 120synctrans in the remote mirror retrieval
Execute parse-translations before parse-contents in process_archive
because the latter needs way more time.

16 years agoPackages::Dispatcher: Ugly hack to fix allpackages display
Frank Lichtenheld [Sun, 9 Sep 2007 13:44:46 +0000 (15:44 +0200)]
Packages::Dispatcher: Ugly hack to fix allpackages display

allpackages needs to be special cased since it has no own asscociated

16 years agocron.d/120synctrans: Allow overriding the server for downloading translations
Frank Lichtenheld [Sun, 9 Sep 2007 13:35:09 +0000 (15:35 +0200)]
cron.d/120synctrans: Allow overriding the server for downloading translations

Suggested by Helge Kreutzmann <debian -at- helgefjell de>

Since the translations in the main Debian archive are still way outdated, use for now. Make overriding $ddtp_ftpsite optional and fall back
to $ftpsite automatically if no seperate $ddtp_ftpsite is defined.

16 years agoapache.conf: Let apache send static files directly if possible
Frank Lichtenheld [Sat, 8 Sep 2007 22:33:25 +0000 (00:33 +0200)]
apache.conf: Let apache send static files directly if possible

If we have no QUERY_STRING and a static file is requested, let
apache handle this directly. This also reenables the behaviour
that goes to
instead of searching for etch.

Also use Encoding for .gz, not Type.

16 years agoPackages::DoIndex: Send Content-Length and Last-Modified
Frank Lichtenheld [Sat, 8 Sep 2007 22:28:55 +0000 (00:28 +0200)]
Packages::DoIndex: Send Content-Length and Last-Modified

16 years agotxt/index.tmpl: Fix display of virtual packages
Frank Lichtenheld [Sat, 8 Sep 2007 20:36:12 +0000 (22:36 +0200)]
txt/index.tmpl: Fix display of virtual packages

"IF array" is always true. Use "IF array.size"

Noted by Brandon <winterknight -at- nerdshack com>

16 years agoRemove non-US support
Frank Lichtenheld [Sat, 8 Sep 2007 09:16:51 +0000 (11:16 +0200)]
Remove non-US support

At this point I see no reason to keep all these hacks around.