Re: [zypp-devel] repo alias vs. name

Hi, I am showing zypper to quite a few scientists and developers these days. They all love it but most of them actually think at first that "name" is the primary key and alias is some sort of optional field. May be alias should be called 'id' or 'key' or something like that. Or 'alias' could be called 'name' and 'name' could be called 'description' or 'label' or 'caption' or 'info' or something like that. just my 2 cents dipe
----- Original Message ----- From: "Jan Kupec" <jkupec@suse.cz> To: zypp-devel@opensuse.org Subject: Re: [zypp-devel] repo alias vs. name Date: Tue, 11 Sep 2007 11:04:59 +0200
See also https://bugzilla.novell.com/show_bug.cgi?id=309041#c6 and the following comments.
Jan Kupec wrote:
Hi,
i would like to achieve a new agreement about repository alias and name usage.
The *last agreement* is to *use alias internaly* by applications and *present name to the user* (see [1]). YaST now uses the URL as both the alias and the name by default and allows the user to change the name. But then you get a mess like this in zypper:
$ zypper sl # | Enabled | Refresh | Type | Name
| URI
--+---------+---------+-------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------- 1 | No | Yes | yast2 | http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-ext... | http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-ext...
2 | Yes | Yes | yast2 | stable
| ftp://dist.suse.de/install/stable-x86 3 | No | Yes | yast2 | http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/
| http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/ 4 | No | Yes | yast2 | http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-d... | http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-d...
In addition, zypper uses alias to as argment in repo handling commands and options (ok, you can use repo number (after i reimplement it - soon), but then you need to use zypper repos/lr/sl to list them each time).
Another thing is, that libzypp names the .repo files in /etc/zypp/repos.d according to the alias, which again creates a mess if urls are used.
My *proposal* is to use *alias as a short name* and the *name as a long name*. I.e., to use a user specified *short name/alias* as both alias and name by default, and leave the possibility to change the long name later (if not specified when ading the repo).
IMO, this way, the overall user experience (mainly for zypper users but also for YaST users) will increase.
If you don't like this idea for some reasons (e.g. the YaST users will need to enter the alias in addition to the URL, although they might like it :O), please, at least let's use something different internally in YaST for the alias, not the URL. Something shorter.
[1] https://bugzilla.novell.com/show_bug.cgi?id=298035
Cheers,
Jano
-- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
-- We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Thursday 20 September 2007 06:13:09 Di Pe wrote:
I am showing zypper to quite a few scientists and developers these days. They all love it but most of them actually think at first that "name" is the primary key and alias is some sort of optional field. May be alias should be called 'id' or 'key' or something like that. Or 'alias' could be called 'name' and 'name' could be called 'description' or 'label' or 'caption' or 'info' or something like that. just my 2 cents
I agree, but it was the YUM people that did it in that way. Smart followed. We just to try to be compatible with them to make less confusion across distributions. Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Thursday 20 September 2007 03:38:30 am Duncan Mac-Vicar Prett wrote:
On Thursday 20 September 2007 06:13:09 Di Pe wrote:
I am showing zypper to quite a few scientists and developers these days. They all love it but most of them actually think at first that "name" is the primary key and alias is some sort of optional field. May be alias should be called 'id' or 'key' or something like that. Or 'alias' could be called 'name' and 'name' could be called 'description' or 'label' or 'caption' or 'info' or something like that. just my 2 cents
I agree, but it was the YUM people that did it in that way. Smart followed. We just to try to be compatible with them to make less confusion across distributions.
Duncan
It's time to try the other way around: "We set names, other follows." Maybe ;-) -- Regards, Rajko. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Friday 21 September 2007 00:58:39 Rajko M. wrote:
It's time to try the other way around: "We set names, other follows." Maybe ;-)
That is the whole point, but for that, you need to be there first :-) -- Duncan Mac-Vicar Prett Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Di Pe
-
Duncan Mac-Vicar Prett
-
Rajko M.