You are not logged in.

#1 2016-05-16 10:42:12

zivziv
Member
From: Florida, USA
Registered: 2010-02-05
Posts: 49
Website

[Solved] Official packages out-of-date flag - where is it stored?

For example - https://www.archlinux.org/packages/comm … 6_64/nemo/
It's not stored in the sync databases downloaded to the computer during update. Is it stored somewhere on the web? can it be retrieved?
Thanks.

UP: Sorry, looks like I've chosen a wrong section. Please move the topic to the appropriate one.

Last edited by zivziv (2016-05-16 15:03:34)

Offline

#2 2016-05-16 10:55:21

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,868
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Is what stored? What are you asking about?

Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-05-16 10:57:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,533
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Of course it's stored somewhere on the web.  You provided a link to precisely where it is stored:

#!/bin/bash

repo=$1
arch=x86_64
pkg=$2

curl https://www.archlinux.org/packages/$repo/$arch/$pkg/ 2>/dev/null | \
                grep -q 'class="flagged"' && echo out of date

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-05-16 11:05:14

zivziv
Member
From: Florida, USA
Registered: 2010-02-05
Posts: 49
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Trilby wrote:

Of course it's stored somewhere on the web.  You provided a link to precisely where it is stored:

Thanks, this can do the trick.
But I was looking for something similar to AUR RPC (which provides results in json format), rather than parsing an html... if such interface exists for official packages.

Offline

#5 2016-05-16 11:11:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,533
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Eh ... you want a single binary piece of information formated as json?  Ok:

curl https://www.archlinux.org/packages/$repo/$arch/$pkg/ 2>/dev/null | \
		grep -q 'class="flagged"' && echo '{"flagged":"true"}' || \
		echo '{"flagged":"false"}'

I get the feeling an XY problem is about to be revealed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2016-05-16 11:18:21

zivziv
Member
From: Florida, USA
Registered: 2010-02-05
Posts: 49
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Ok, what I want to do is to add support for the packages' out-of-date status into pacman/AUR helper app I'm working on.
For AUR packages, we already have this support from the AUR RPC.
For official packages, the only way to retrieve this info found so far is to parse an html page containing package info. This is not efficient in terms of traffic used, processing time, etc, so I'm wondering if there's any other way to get this info, e.g. similar to AUR RPC.
Hope this helps.

Offline

#7 2016-05-16 14:56:25

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved] Official packages out-of-date flag - where is it stored?

zivziv wrote:

Ok, what I want to do is to add support for the packages' out-of-date status into pacman/AUR helper app I'm working on.
For AUR packages, we already have this support from the AUR RPC.
For official packages, the only way to retrieve this info found so far is to parse an html page containing package info. This is not efficient in terms of traffic used, processing time, etc, so I'm wondering if there's any other way to get this info, e.g. similar to AUR RPC.
Hope this helps.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2016-05-16 15:02:50

zivziv
Member
From: Florida, USA
Registered: 2010-02-05
Posts: 49
Website

Re: [Solved] Official packages out-of-date flag - where is it stored?

Thanks, that's exactly what I've been looking for!

Offline

Board footer

Powered by FluxBB