[opensuse] Question about zypper local directory repo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have one local repository: cer@Telcontar:~> cat /etc/zypp/repos.d/Local_RPMs.repo [Local_RPMs] name=Local RPMs enabled=1 autorefresh=1 baseurl=dir:/data/storage_c/repositorios_zypp/LocalRPMs path=/ type=plaindir priority=100 keeppackages=0 cer@Telcontar:~> In it, I have one rpm which is a symlink: cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs> l auto* lrwxrwxrwx 1 cer users 74 Jul 23 11:33 autofirma-1.6.5-1.noarch_SUSE.rpm -> /home/cer/aeat/programas/autofirma_linux/autofirma-1.6.5-1.noarch_SUSE.rpm cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs> "zypper se" (after a forced refresh) does not see it. Telcontar:~ # zypper se autofirma Loading repository data... Reading installed packages... No matching items found. Telcontar:~ # If I replace the symlink with the actual file, and refresh, zypper sees it: Telcontar:~ # zypper se autofirma Loading repository data... Reading installed packages... S | Name | Summary | Type - --+-----------+-----------------------------------------------------------------+-------- | autofirma | Aplicación de firma electrónica en escritorio y en trámites web | package Telcontar:~ # Is this a bug, or a feature? (Leap 15.1) P.S: If you are curious, the rpm comes from the Spanish government, for signing documents, and it is GNU GPL v. 2.0 and EUPL v. 1.1 https://firmaelectronica.gob.es/Home/Descargas.html - -- Cheers Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXxlbVRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVePoAn0AUpR3k830n0jFxImL2 6eJkHXkrAJsGDUUV4TMS8DFjbDptXoqah2j7eA== =Ik8c -----END PGP SIGNATURE-----
On 7/23/20 4:41 AM, Carlos E. R. wrote:
In it, I have one rpm which is a symlink:
cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs> l auto* lrwxrwxrwx 1 cer users 74 Jul 23 11:33 autofirma-1.6.5-1.noarch_SUSE.rpm -> /home/cer/aeat/programas/autofirma_linux/autofirma-1.6.5-1.noarch_SUSE.rpm cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs>
"zypper se" (after a forced refresh) does not see it.
Did you rebuild the repo metadata? I used to do: ## update metadata createrepo --update -d /path/to/your/repo ## then sign your repomd.xml gpg -a --detach-sign --yes --batch --passphrase $( < $REPOKEY ) /path/to/repodata/repomd.xml gpg -a --export $MY_KEY > /path/to/repodata/repomd.xml.key I don't know if you need all that for a simple directory to incorporate with zypper, but it eliminates all unsigned warnings, etc... -- David C. Rankin, J.D.,P.E.
On 23/07/2020 19.44, David C. Rankin wrote:
On 7/23/20 4:41 AM, Carlos E. R. wrote:
In it, I have one rpm which is a symlink:
cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs> l auto* lrwxrwxrwx 1 cer users 74 Jul 23 11:33 autofirma-1.6.5-1.noarch_SUSE.rpm -> /home/cer/aeat/programas/autofirma_linux/autofirma-1.6.5-1.noarch_SUSE.rpm cer@Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs>
"zypper se" (after a forced refresh) does not see it.
Did you rebuild the repo metadata? I used to do:
## update metadata createrepo --update -d /path/to/your/repo
## then sign your repomd.xml gpg -a --detach-sign --yes --batch --passphrase $( < $REPOKEY ) /path/to/repodata/repomd.xml
gpg -a --export $MY_KEY > /path/to/repodata/repomd.xml.key
I don't know if you need all that for a simple directory to incorporate with zypper, but it eliminates all unsigned warnings, etc...
No, I don't use that method. It is just a plain directory. The problem is simply that zypper does not sees symlinks. Intentional or bug? -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On 7/23/20 12:51 PM, Carlos E. R. wrote:
No, I don't use that method. It is just a plain directory.
The problem is simply that zypper does not sees symlinks. Intentional or bug?
No clue there. I can see where zypper wouldn't follow symlinks. It really depends on how zypper treats them (of which I have no clue) It works with the actual file though -- right? -- David C. Rankin, J.D.,P.E.
On 23/07/2020 21.06, David C. Rankin wrote:
On 7/23/20 12:51 PM, Carlos E. R. wrote:
No, I don't use that method. It is just a plain directory.
The problem is simply that zypper does not sees symlinks. Intentional or bug?
No clue there. I can see where zypper wouldn't follow symlinks. It really depends on how zypper treats them (of which I have no clue)
It works with the actual file though -- right?
Yes, it does. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hello, Am Donnerstag, 23. Juli 2020, 19:51:49 CEST schrieb Carlos E. R.:
The problem is simply that zypper does not sees symlinks. Intentional or bug?
As a general rule of thumb - whenever you ask "is this a bug?", the most likely answer is "yes" ;-) Please open a bugreport - I can't imagine why skipping symlinks would be a good idea. Regards, Christian Boltz --
We could call it openSUSE 11.11.11 ;-) I'd prefer we use the US date format: 11.11.11 ;-) [> Freek de Kruijf and Greg Freemyer in opensuse-project]
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 24/07/2020 23.09, Christian Boltz wrote:
Hello,
Am Donnerstag, 23. Juli 2020, 19:51:49 CEST schrieb Carlos E. R.:
The problem is simply that zypper does not sees symlinks. Intentional or bug?
As a general rule of thumb - whenever you ask "is this a bug?", the most likely answer is "yes" ;-)
I like a second pair of eyes ;-)
Please open a bugreport - I can't imagine why skipping symlinks would be a good idea.
Thanks - done :-) Bug 1174561 - zypper local directory repo ignores symlinks (edit) Side note: that signature quote of yours made me laugh :-) -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On 27/07/2020 18.46, Carlos E. R. wrote:
On 24/07/2020 23.09, Christian Boltz wrote:
Hello,
Am Donnerstag, 23. Juli 2020, 19:51:49 CEST schrieb Carlos E. R.:
The problem is simply that zypper does not sees symlinks. Intentional or bug?
As a general rule of thumb - whenever you ask "is this a bug?", the most likely answer is "yes" ;-)
I like a second pair of eyes ;-)
Please open a bugreport - I can't imagine why skipping symlinks would be a good idea.
Thanks - done :-)
Bug 1174561 - zypper local directory repo ignores symlinks (edit)
Answer: +++----------- Hi Carlos, it's the intended behavior. I'll update the zypper manpage to point out that symlinks are not followed. -----------++- -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On 7/28/20 3:24 AM, Carlos E. R. wrote:
Answer:
+++----------- Hi Carlos, it's the intended behavior. I'll update the zypper manpage to point out that symlinks are not followed. -----------++-
Why not ask to make the bug a "Feature Request" and add an option to --follow-symlinks -- David C. Rankin, J.D.,P.E.
On 03/08/2020 02.38, David C. Rankin wrote:
On 7/28/20 3:24 AM, Carlos E. R. wrote:
Answer:
+++----------- Hi Carlos, it's the intended behavior. I'll update the zypper manpage to point out that symlinks are not followed. -----------++-
Why not ask to make the bug a "Feature Request" and add an option to
--follow-symlinks
Dunno. It's not that important. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
participants (3)
-
Carlos E. R.
-
Christian Boltz
-
David C. Rankin