Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:bepasty
User: [email protected]
Usertags: pu

Hello,

[ Reason ]
This fixes bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124997
, i.e. syntax highlighting not working because the packaged version of
bepasty was looking for a css file in the wrong path.

[ Impact ]
If the update isn't approved users won't have an easy way to get syntax
highlighting on their bepasty instances. At the moment there isn't even
a new upstream version user-visible changes that I could maintain in
trixie-backports.

[ Tests ]
The package was built with sbuild, which triggered a run of both
autopkgtests and piuparts (both successful, of course).

I've then installed the resulting binary deb on both bepasty instances I
run and use, checked that the bug was actually fixed (e.g.
https://eoval.org/zwopZYEy ) and gave a quick look around to check that
everything looked fine.

[ Risks ]
The actual change is a one-line change in an html template, so I think
that the risks are pretty low.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
This package (already in the version in stable) changes the paths where
some js and css files are loaded from to use the packaged versions; the
proposed changes adds one such change that had been missed.

Thanks in advance
diff -Nru bepasty-1.2.1/debian/changelog bepasty-1.2.1/debian/changelog
--- bepasty-1.2.1/debian/changelog      2024-03-08 13:29:49.000000000 +0100
+++ bepasty-1.2.1/debian/changelog      2026-03-06 11:10:04.000000000 +0100
@@ -1,3 +1,9 @@
+bepasty (1.2.1-1+deb13u1) trixie; urgency=medium
+
+  * Fix loading pygments css. Closes: #1124997
+
+ -- Elena Grandi <[email protected]>  Fri, 06 Mar 2026 11:10:04 +0100
+
 bepasty (1.2.1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru 
bepasty-1.2.1/debian/patches/0003-Correct-for-different-file-paths-in-the-debian-insta.patch
 
bepasty-1.2.1/debian/patches/0003-Correct-for-different-file-paths-in-the-debian-insta.patch
--- 
bepasty-1.2.1/debian/patches/0003-Correct-for-different-file-paths-in-the-debian-insta.patch
        2024-03-08 13:29:49.000000000 +0100
+++ 
bepasty-1.2.1/debian/patches/0003-Correct-for-different-file-paths-in-the-debian-insta.patch
        2026-03-06 11:10:04.000000000 +0100
@@ -5,8 +5,9 @@
 Forwarded: not-needed
 ---
  src/bepasty/templates/_layout.html |  2 +-
+ src/bepasty/templates/display.html |  2 +-
  src/bepasty/templates/index.html   | 10 +++++-----
- 2 files changed, 6 insertions(+), 6 deletions(-)
+ 3 files changed, 7 insertions(+), 7 deletions(-)
 
 diff --git a/src/bepasty/templates/_layout.html 
b/src/bepasty/templates/_layout.html
 index bc681f8..60f1fcb 100644
@@ -21,6 +22,19 @@
          <!-- Font Awesome -->
          <link rel="stylesheet" href="{{ url_for('bepasty.xstatic', 
name='font_awesome', filename='css/font-awesome.min.css') }}">
          <!-- Bepasty styles -->
+diff --git a/src/bepasty/templates/display.html 
b/src/bepasty/templates/display.html
+index 2a7ab79..f621c38 100644
+--- a/src/bepasty/templates/display.html
++++ b/src/bepasty/templates/display.html
+@@ -97,7 +97,7 @@
+ 
+ {% block extra_link %}
+ <!-- Pygments styles -->
+-<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='pygments', 
filename='css/colorful.css') }}" type="text/css">
++<link rel="stylesheet" href="{{ url_for('bepasty.xstatic', name='pygments', 
filename='colorful.css') }}" type="text/css">
+ <!-- asciinema styles -->
+ <link rel="stylesheet" href="{{ url_for('bepasty.xstatic', 
name='asciinema_player', filename='asciinema-player.css') }}" type="text/css">
+ {% endblock %}
 diff --git a/src/bepasty/templates/index.html 
b/src/bepasty/templates/index.html
 index e91cea2..63d3def 100644
 --- a/src/bepasty/templates/index.html

Reply via email to