LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How can validate debian repository url. (https://www.linuxquestions.org/questions/debian-26/how-can-validate-debian-repository-url-4175431667/)

ibasaran 10-11-2012 08:21 AM

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

ibasaran 10-11-2012 08:35 AM

is there a regular expression for this ?

62chevy 10-11-2012 09:51 AM

I think what you are asking for is a keyring. something like the debian-archive-keyring created with gnupg.

ibasaran 10-11-2012 10:04 AM

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.