[Bug 418440] New: yast repostitory view, editor doesn`t apply repo name changes on all places
https://bugzilla.novell.com/show_bug.cgi?id=418440 Summary: yast repostitory view, editor doesn`t apply repo name changes on all places Product: openSUSE 11.1 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bgerz@gmx.net QAContact: jsrain@novell.com Found By: Beta-Customer How to find the problem: 1) rename a repository name(not path or url) and look in /etc/zypp/repos.d YaST uses the repository name AS FILENAME and as value inside this file, but the YaST Repository Editor does only change the value. Example with file: /etc/zypp/repos.d/test_repository_name_change.repo <==== It contains the new value now: [test_repository_name_change] name=test_repository_name_change__FAILED <==== enabled=1 autorefresh=1 baseurl=http://ftp5.gwdg.de/pub/opensuse/repositories/Virtualization%3a/Qemu/openSUS... path=/ type=rpm-md keeppackages=0 2) I`ve used YaST with active zypper caching in /var/cache/zypp/packages a)Activate zypper cache by: zypper mr -kt b)Install a package by using yast or zypper c)Rename the repository name by yast repository editor (embedded in software installer) d)Activate caching for the new name(for zypper it`s a new repository): zypper mr -kt (the output does not show the new repo name, but the old name) e)remove the package rpm from cache directory d)re-install the same or other package(now with new repository name (I`ve used "test_repository_name_change__FAILED", old name was "test_repository_name_change". and look, what was done on the cache directory /var/cache/zypp/packages, which does also use the subdirectory naming from yast repository name editor. Zypper`s cache directory view /var/cache/zypp/packages drwxr-xr-x 17 root root 4096 Aug 19 22:32 . drwxr-xr-x 20 root root 4096 Aug 18 23:11 .. drwxr-xr-x 5 root root 4096 Aug 18 09:58 education drwxr-xr-x 4 root root 4096 Aug 18 10:37 java-32bit drwxr-xr-x 3 root root 4096 Aug 18 02:00 languages-pascal drwxr-xr-x 3 root root 4096 Aug 18 10:26 makesusedvd_1 drwxr-xr-x 4 root root 4096 Aug 19 00:11 my_1 drwxr-xr-x 3 root root 4096 Aug 17 23:26 non-oss drwxr-xr-x 3 root root 4096 Aug 17 23:26 oss drwxr-xr-x 5 root root 4096 Aug 18 03:46 packman drwxr-xr-x 5 root root 4096 Aug 18 12:11 python-skype drwxr-xr-x 3 root root 4096 Aug 18 12:09 skype drwxr-xr-x 3 root root 4096 Aug 19 22:32 test_repository_name_change <=== drwxr-xr-x 4 root root 4096 Aug 18 03:27 tools drwxr-xr-x 3 root root 4096 Aug 17 23:46 videolan drwxr-xr-x 4 root root 4096 Aug 18 07:27 yast-svn drwxr-xr-x 3 root root 4096 Aug 18 08:58 yast-tools As you can see on the new file download(was removed manually before), the old directory name is really in use for new downloads from new repository name... I have not in mind what was going on after editing the download path for an given repository name :-( 'grep' and 'find' do help to find such naming problems, if you build automatic testing tools for yast development, but you now. So, please do some code cleaning if anybody get the time :-) - I found it out because I use zypper cache to create my own repository (one repo for all packages I need). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=418440 User bgerz@gmx.net added comment https://bugzilla.novell.com/show_bug.cgi?id=418440#c1 --- Comment #1 from Bruno Gerz <bgerz@gmx.net> 2008-08-19 13:05:35 MDT --- Created an attachment (id=234217) --> (https://bugzilla.novell.com/attachment.cgi?id=234217) package versions of yasgt and zypp package list -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=418440 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #234217|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=418440 Robert Vojcik <rvojcik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |yast2-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=418440 User lslezak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=418440#c2 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Ladislav Slezak <lslezak@novell.com> 2008-09-11 08:43:07 MDT --- You must distinguish between repository alias and repository name. In the example: [test_repository_name_change] <============== this is the alias name=test_repository_name_change__FAILED <=== this is the name Name is long repository name (a descriptive string). Alias is a unique short repository name used for identifying the repository (that's why it must be unique). And it's used in zypper so the user does not need to write very long names. Yast uses name string only, alias is hidden from user point of view. The package manager (libzypp) uses alias for persistent storage (package and metadata cache). So if you want to keep packages in test_repository_name_change subdirectory you have to change the alias. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=418440 User lslezak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=418440#c3 --- Comment #3 from Ladislav Slezak <lslezak@novell.com> 2008-09-11 08:48:15 MDT --- A typo, the last paragraph should be: So if you want to keep packages in test_repository_name_change__FAILED subdirectory you have to change the alias. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com