[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#902004: Acknowledgement (/usr/sbin/xrdp-build-pulse-modules: incorrect usage of dget)



control: tags -1 patch

I just realised that this is due to the parsing of `apt show`-output.
The following patch fixes this:

--- /usr/sbin/xrdp-build-pulse-modules    2018-03-31 19:21:08.000000000
+0200
+++ /usr/local/bin/xrdp-build-pulse-modules    2018-06-21
13:51:59.266280606 +0200
@@ -23,8 +23,8 @@
 pulseaudio_upstream_version=$(dpkg-query -W
-f='${source:Upstream-Version}' pulseaudio)
 
 # Determine mirror
-if test -x /usr/bin/apt ; then
-    set -- $(apt show "pulseaudio=$pulseaudio_version" 2>/dev/null)
+if test -x /usr/bin/apt-cache ; then
+    set -- $(apt-cache policy pulseaudio | fgrep -A1 '***' | tail -1)
     mirror=$2
     suite=${3#*/}
 fi

Kind regards,

Willem Mulder


On 21/06/18 13:09, Debian Bug Tracking System wrote:
> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 902004: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902004.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  Debian Remote Maintainers <debian-remote@lists.debian.org>
>
> If you wish to submit further information on this problem, please
> send it to 902004@bugs.debian.org.
>
> Please do not send mail to owner@bugs.debian.org unless you wish
> to report a problem with the Bug-tracking system.
>


Reply to: