SOURCES: poldek-nohold-fix.patch (NEW) - needed on head, too

arekm arekm at pld-linux.org
Sun Nov 18 14:44:53 CET 2007


Author: arekm                        Date: Sun Nov 18 13:44:53 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- needed on head, too

---- Files affected:
SOURCES:
   poldek-nohold-fix.patch (1.1 -> 1.2)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/poldek-nohold-fix.patch
diff -u /dev/null SOURCES/poldek-nohold-fix.patch:1.2
--- /dev/null	Sun Nov 18 14:44:53 2007
+++ SOURCES/poldek-nohold-fix.patch	Sun Nov 18 14:44:48 2007
@@ -0,0 +1,38 @@
+diff -urN poldek/cli/install.c poldek.new/cli/install.c
+--- poldek/cli/install.c	2007-07-01 23:04:26.000000000 +0200
++++ poldek.new/cli/install.c	2007-11-17 18:19:06.000000000 +0100
+@@ -174,6 +174,9 @@
+ {"hold", OPT_INST_HOLD, "PACKAGE[,PACKAGE]...", 0,
+  N_("Prevent packages listed from being upgraded if they are already installed."),
+      OPT_GID },
++
++{"nohold", OPT_INST_NOHOLD, 0, 0,
++ N_("Do not hold any packages. Disables --hold settings."), OPT_GID },
+                                                 
+ {"ignore", OPT_INST_IGNORE, "PACKAGE[,PACKAGE]...", 0,
+  N_("Make packages listed invisible."), OPT_GID },
+@@ -323,17 +326,21 @@
+             poldek_configure(ts->ctx, POLDEK_CONF_ROOTDIR, arg);
+             break;
+ 
+-
+         case OPT_INST_HOLD:
+             poldek_configure(ts->ctx, POLDEK_CONF_OPT, POLDEK_OP_HOLD, 1);
+             poldek_configure(ts->ctx, POLDEK_CONF_HOLD, arg);
+             break;
+-            
++        
++        case OPT_INST_NOHOLD:
++            ts->setop(ts, POLDEK_OP_HOLD, 0);
++            poldek_configure(ts->ctx, POLDEK_CONF_OPT, POLDEK_OP_HOLD, 0);
++            break;
++        
+         case OPT_INST_IGNORE:
+             poldek_configure(ts->ctx, POLDEK_CONF_OPT, POLDEK_OP_IGNORE, 1);
+             poldek_configure(ts->ctx, POLDEK_CONF_IGNORE, arg);
+             break;
+-
++	
+         case OPT_INST_NOIGNORE:
+             ts->setop(ts, POLDEK_OP_IGNORE, 0);
+             poldek_configure(ts->ctx, POLDEK_CONF_OPT, POLDEK_OP_IGNORE, 0);
================================================================


More information about the pld-cvs-commit mailing list