seth vidal wrote: >Suggestion: > If you're going to send patches with new features - make the patches >for HEAD, not for 2.0.X - this feature, if it were to get in this form >AT ALL would not get in to 2.0.X. > > Sorry, i'll do it cause in HEAD i don't see 'po/' folder for example and some files disapear to. try to do 'cvs update -dPA -r HEAD' in your yum cvs directory - you'll see it too :) >With regard to the actual patch: > > you just eject the cdrom w/o asking - that could have negative effects >if a user was not expecting it. Why not just prompt the user and let >them prepare the next media - that way you're not bound to cdrom/dvd. If >someone is loading the units off of compact flash or floppy disk or zip >drive, then the code would be more generic and more well-suited to them. > > Heh, i make two variables ([u]mountcommand in yum.conf)- if you dislike current model just set it to empty line or /bin/false - and then yum just ask for new disk and don't try to eject/mount. Do you think what this behaviour must be default? little blackmail: Can i expect what this idea (removable support) appear in yum CVS ? :) Also I have lots of patches to yum (and this bored i18n patch too!) :) >Also - why not have yum-arch take multiple disks when you tell it to >talk to removable media? Then you can have 1 repository for all N disks. >So the header.info ends up looking like: >0:name-1.1-1.i386=DISKLABEL/path/to/name-1.1-1.i386.rpm > >then have tag the repo as removable in yum.conf > >[redhat9fromcd] >name = Red Hat Linux 9 from CD >baseurl=removable:///mnt/cdrom/ > >Then have it look at the disklabel - if it is not the one it needs then >it asks for a new disk. > >If all the disklabels are the same then you have a problem, clearly, but >then so does your vendor :-D > > Yes, i like this idea but how can i get DISKLABEL from cd? :) If you mean RH special files .diskid (my distro use this scheme too) then it's not a good idea cause we can't just burn lots of RPMS but also need to prepare this .diskid :( How about this idea: yum -Rredhat9(3) /mnt/cdrom Then grab 3 cd and write to header.info something like this: 0:name-1.1-1.i386=NUMBER/path/to/name-1.1-1.i386.rpm in yum.conf now must be [redhat9fromcd] name=RedHat Linux 9 from CD labels=Red Hat Linux 9 cd number %d baseurl=removable:/// -- .............................................................. IRC: irc.freenode.net #asplinux Grigory Bakunov ICQ: 51369901 ASPLinux Development Team Life would be so much easier if we could just look at the source code.