Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 947628

Summary: app-eselect/eselect-repository: doesn't handle "." correctly
Product: Gentoo Linux Reporter: Amit Ugol <amit.ugol>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Amit Ugol 2025-01-06 19:26:06 UTC
Created repo 'pytorch-roc-6.3' results in this error:
!!! Section 'pytorch-roc-6.3' in repos.conf has name different from repository name 'pytorch-roc-6-3' set inside repository

Reproducible: Always

Steps to Reproduce:
1. eselect repository create pytorch-roc-6.3
2. sync
3.
Actual Results:  
!!! Section 'pytorch-roc-6.3' in repos.conf has name different from repository name 'pytorch-roc-6-3' set inside repository

Expected Results:  
pytorch-roc-6-3 should be pytorch-roc-6.3 (or limit certain chars?)

cat /etc/portage/repos.conf/eselect-repo.conf
.
.
.

[pytorch-roc-6.3]
location = /var/db/repos/pytorch-roc-6.3

;;;

cat /var/db/repos/pytorch-roc-6.3/profiles/repo_name
pytorch-roc-6.3
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-06 19:28:43 UTC
I think we should emit some nice message but it's clearly not a reasonable repository name. It should be 'pytorch', 'local', 'amit' or something.