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.
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.
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 <abbas@gnu.org>
----------------------------
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
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.
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
call.
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.
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.
html/show.tmpl: Improve display of VCS-* information
Suggested by Joey Hess <joeyh@debian.org>
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.
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
address
- Update some copyright years
- Add myself to some files as copyright holder
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.
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.
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
exist.
Update list of ddtp languages to the ones available on
ddtp.debian.net.
Fix typo in 120synctrans in the remote mirror retrieval
part.
Execute parse-translations before parse-contents in process_archive
because the latter needs way more time.
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
ddtp.debian.net for now. Make overriding $ddtp_ftpsite optional and fall back
to $ftpsite automatically if no seperate $ddtp_ftpsite is defined.
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 packages.debian.org/etch goes to packages.debian.org/etch/
instead of searching for etch.
In etch dpkg-source can extract source packages to a designated
directory. Use this instead of trying to extract the directory name
from dpkg-source's output which is inheriently unreliable.
Don't waste time on calling read_entry_simple for removed
packages. Also fix error detection for this call. The result
is always defined (and an array reference), errors can be
detected by checking whether the referenced array is empty.
Packages::DoDownload: Don't try to numerically compare a localized number
After formatting a number with the help of sprintf, it is localized, i.e.
the decimal point might not be a decimal point anymore. So don't try to
compare it numerically (i.e. with '<' or '>') since that will not work.
"Use of uninitialized value" mostly and two
occourence of masking an earlier defined variable.
No bugs really, but they clutter up the web servers log.
Merge from CVS: Skip clean-up if extraction fails and some minor changes
revision 1.3
date: 2007-07-26 15:32:23 +0200; author: djpig; state: Exp; lines: +13 -5
Skip clean-up run if extraction failed so that we don't lose all
the changelogs next time some bugs goes unnoticed for a week
----------------------------
revision 1.2
date: 2007-07-23 18:47:49 +0200; author: djpig; state: Exp; lines: +2 -2
Commit some older local changes:
* double time until deletion, no reason here to be too strict
* enable debug output, makes the logs much more informative in case of problems
Merge from CVS: Fix handling of version 0 and some Perl warnings
revision 1.17
date: 2007-07-26 11:58:34 +0200; author: djpig; state: Exp; lines: +9 -1
Initialize %stats hash to avoid perl warnings
----------------------------
revision 1.16
date: 2007-07-23 17:59:14 +0200; author: djpig; state: Exp; lines: +1 -1
The version number can be just 0, don't fall over that
For a given <package>, search for P<package>,
and then extract all the terms from the document
you find (you could also implement this part by
just looking up the description and applying the
same algorithms to it as in parse-packages, haven't
benchmarked that against each other).
With these terms then make a OR search. Ignore all
results <package>, since these are obvious ;)
The first few matches of the rest are usually
packages very similar to the one we started with.
Packages::Dispatcher: create from code from dispatcher.pl
This is currently only a copy with some small formatting changes.
But this should benefit our mod_perl cleaness and I intend to
wrap that up somewhat nicer in the future, too.
Remove Packages::Template->trailer which essentially forced
any format to have a foot.tmpl even it made no sense for them.
Now formats that want something like that can handle it themself.
Fix handling of languages in the footer so that we get a list
of available translations again. Currently this only reflects
DDTP translations since the po stuff isn't reenabled yet since
the switch to templates.
Fulltext search: Greatly improve by using a more fuzzy approach
Most of this done on suggestion of Enrico Zini <enrico@enricozini.org>
Using OP_OR instead of OP_AND as default can actually lead to better
matches because the ones found with OP_AND often don't actually are
the most relevant ones. This is especially true when using more than
two keywords.
Accordingly sort by relevance on the result page.
Improve indexing:
+ Add both the unstemmed and the stemmed description to index
this will increase the relevance of exact matches. Only the
latter is done with positional information
+ Really index debtags and the package name
This only adds support for displaying the description
itself on the show page, not the short description in
dependencies or in search results.
The latter is more complicated now since we store the
short description in packages_small exactly because these
places are performance critical and to have to
access one more database in these places is bad...