#815191 stdeb: Uses cmd line options removed in apt-file 3

Package:
src:stdeb
Source:
stdeb
Submitter:
Niels Thykier
Date:
2025-08-17 17:48:05 UTC
Severity:
important
Tags:
#815191#5
Date:
2016-02-19 21:06:00 UTC
From:
To:
Hi,

The stdeb file "stdeb/util.py" contains a function calling apt-file
twice.  First time with "--dummy --non-interactive" (and a second time
without).  The two options listed are not available in apt-file 3 and
the first call should probably be removed.

Thanks,
~Niels

#815191#10
Date:
2016-06-23 05:35:04 UTC
From:
To:
Control: tags -1 important

Hi,

FTR, apt-file/3 is now in unstable and testing.

I presume the particular path is not critical for stdeb's primary
use-cases and have not bumped it to RC.

Thanks,
~Niels

#815191#21
Date:
2021-02-08 18:28:24 UTC
From:
To:
Control: tags -1 + upstream confirmed
[...]
[...]
[...]

I'm looking at updating stdeb to 0.10 and can confirm that the
relevant code still seems to be in stdeb/util.py:

```
    if 1:
        # do dry run on apt-file
        dry_run_args = args[:] + ['--dummy', '--non-interactive']
        cmd = subprocess.Popen(dry_run_args, stderr=subprocess.PIPE)
        returncode = cmd.wait()
        if returncode:
            err_output = cmd.stderr.read()
            raise RuntimeError('Error running "apt-file search": ' +
                               err_output.strip())
```

It looks to me like if this code path is hit it will always error out.
I'm not sure how to trigger this code path though, and the commands
I've tested works fine....

Wanted to confirm the code is still around however. Tagging accordingly.
Someone should possibly bring this up with upstream if it hasn't already
been discussed.

Regards,
Andreas Henriksson

#815191#32
Date:
2024-07-10 13:15:53 UTC
From:
To: