How can validate debian repository url.
Hii All,
i have an application that is managing repositories. users can add repository url and before save this url, i want to valide that url is valid debian repository url or not. how can achive this. Thanks |
is there a regular expression for this ?
|
I think what you are asking for is a keyring. something like the debian-archive-keyring created with gnupg.
|
there is a input box and users writing their repository url to this input box like deb ftp://ftp2.fr.debian.org/debian/ stable main contrib non-free and pressing save button. i am saving that url to sourceslist but user also can write any url and i am saving to sourceslist.
i want to give a warning to user this url is not a debian repository url if user write inapplicable url like "http://www.linuxquestions.org/" i dont know how is working debian-archive-keyring. i will search it. if you know how is working can you give me a sample ? Thanks for your reply |
All times are GMT -5. The time now is 12:41 PM. |