Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=64270f55308db303c06f272241573d0c704cf763

commit 64270f55308db303c06f272241573d0c704cf763
Author: Priyank <[EMAIL PROTECTED]>
Date:   Fri Feb 29 22:03:16 2008 +0530

gfpm_write_config_file(): enable a repo in pacman-g2.conf only if 
repo->enabled=TRUE

diff --git a/src/gfpm-repomanager.c b/src/gfpm-repomanager.c
index c1a2e22..f9af481 100644
--- a/src/gfpm-repomanager.c
+++ b/src/gfpm-repomanager.c
@@ -281,7 +281,10 @@ gfpm_write_config_file (void)
GList *footer = NULL;
repo = rlist->data;
/* write the repository entry */
-               fprintf (fp, "Include = %s/%s\n", REPO_PATH, repo->name);
+               if (repo->enabled)
+                       fprintf (fp, "Include = %s/%s\n", REPO_PATH, 
repo->name);
+               else
+                       fprintf (fp, "#Include = %s/%s\n", REPO_PATH, 
repo->name);

gfpm_write_servers_to_file (repo->name);
/* write the footer */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to