FS#71275 - Restore list of downloaded packages in v6

Attached to Project: Pacman
Opened by Steve Schaeffer (schasj) - Wednesday, 16 June 2021, 21:02 GMT
Last edited by Allan McRae (Allan) - Wednesday, 16 June 2021, 23:19 GMT
Task Type Feature Request
Category Output
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Prior to v6.0 the command "pacman -Suywq" would include in the output the list of packages downloaded. I use this command in a script, with --noconfirm, to fetch package updates and I parse the output and send email with the list of new updates.

With v6.0 the downloads are no longer the only output, and the previously downloaded (but not yet upgraded) packages are mixed into the list making it impossible to know what is new in the list.

I can see where the new behavior is preferred in some situations but I'd like to see an option to list only the packages downloaded by the current invocation. Or provide 2 lists in the output, one of just new packages and one of all/previous packages.


Steps to Reproduce:
Run "pacman -Suywq" and observe that all packages awaiting installation are listed and there is nothing to indicate which were downloaded by a previous invocation.
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 16 June 2021, 23:19 GMT
Reason for closing:  Not a bug
Comment by morganamilo (morganamilo) - Wednesday, 16 June 2021, 21:13 GMT
-q has never done anything with -S. Do you mean -p?

Also can you give an example of exactly what you mean?
Comment by Eli Schwartz (eschwartz) - Wednesday, 16 June 2021, 21:17 GMT
On general principle: this seems unusually specific. I'm not a fan of adding pacman -Suywq --schasj-output because of a feature exactly one person wants.

Why don't you just maintain that list in a second file and diff them? You could even generate it by a command that, unlike pacman -Sywu, is intended for scripting and *supports* scripting: pacman -Qu

Furthermore, I don't even understand what --schasj-output is intended to show. pacman -Sywu shows:

- verbosepkglists listing all packages
- packages stating "XXXX downloading..."

and the latter does NOT (contrary to your claim) get output for previously downloaded (but not yet upgraded) packages for pacman v6.0.0-5-g5429.

I am intentionally omitting -q since it has no effect on -Sywu, only on -Ss or -Sl
Comment by Steve Schaeffer (schasj) - Wednesday, 16 June 2021, 22:35 GMT
morganamilo, the man page under SYNC OPTIONS (APPLY TO -S) says:

-q, --quiet
Show less information for certain sync operations. This is useful when
pacman’s output is processed in a script. Search will only show
package names and not repository, version, group, and description
information; list will only show package names and omit databases and
versions; group will only show package names and omit group names.

So I added the -q without testing it.


eschwartz, upon further inspection I see my mistake and the info I seek is still there. My apologies. Since I can't delete the request please do so.

Loading...