- add a license
authorMichael Schroeder <mls@suse.de>
Thu, 8 Nov 2007 11:37:00 +0000 (11:37 +0000)
committerMichael Schroeder <mls@suse.de>
Thu, 8 Nov 2007 11:37:00 +0000 (11:37 +0000)
- don't branch for supplemented packages
- fix off by one in minimize queue revert code

56 files changed:
LICENSE.BSD [new file with mode: 0644]
src/bitmap.c
src/bitmap.h
src/evr.c
src/evr.h
src/hash.h
src/policy.c
src/policy.h
src/pool.c
src/pool.h
src/poolarch.c
src/poolarch.h
src/poolid.c
src/poolid.h
src/poolid_private.h
src/pooltypes.h
src/poolvendor.c
src/poolvendor.h
src/queue.c
src/queue.h
src/repo.c
src/repo.h
src/repo_solv.c
src/repo_solv.h
src/solvable.h
src/solver.c
src/solver.h
src/util.c
src/util.h
tools/attr_store.c
tools/attr_store.h
tools/attr_store_p.h
tools/content2solv.c
tools/dumpattr.c
tools/dumpsolv.c
tools/fastlz.c
tools/helix2solv.c
tools/mergesolv.c
tools/patchxml2solv.c
tools/repo_content.c
tools/repo_content.h
tools/repo_helix.c
tools/repo_helix.h
tools/repo_patchxml.c
tools/repo_patchxml.h
tools/repo_rpmdb.c
tools/repo_rpmdb.h
tools/repo_rpmmd.c
tools/repo_rpmmd.h
tools/repo_susetags.c
tools/repo_susetags.h
tools/repo_write.c
tools/repo_write.h
tools/rpmdb2solv.c
tools/rpmmd2solv.c
tools/susetags2solv.c

diff --git a/LICENSE.BSD b/LICENSE.BSD
new file mode 100644 (file)
index 0000000..79c9f2d
--- /dev/null
@@ -0,0 +1,28 @@
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of Novell nor the names of its contributors may
+   be used to endorse or promote products derived from this software
+   without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
index 6873ce1..1f8a74d 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * bitmap.c
  * 
  */
index efe5f3b..2c4028e 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * bitmap.h
  * 
  */
index ab2d8a5..46698bf 100644 (file)
--- a/src/evr.c
+++ b/src/evr.c
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * evr.c
  *
  * version compare
index d260eef..48227fd 100644 (file)
--- a/src/evr.h
+++ b/src/evr.h
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * evr.h
  * 
  */
index f2534e9..6e1c4de 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * hash.h
  * generic hash functions
  */
index 0825c05..39e8499 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * Generic policy interface for SAT solver
  * 
  */
index a00df94..4d76be6 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * Generic policy interface for SAT solver
  * 
  */
index 493d8ef..cb4c0a9 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * pool.c
  * 
  * The pool contains information about solvables
index 5e11eb0..f17ff84 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * pool.h
  * 
  */
index 1f19466..5755fda 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * poolarch.c
  * 
  * create architecture policies
index cd4f044..017f1e6 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #ifndef POOLARCH_H
 #define POOLARCH_H
 
index 620bb6b..bc49bba 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * poolid.c
  *
  * Id management
index 406e23d..069ecb5 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * poolid.h
  * 
  */
index c2e4807..e293dbb 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * poolid_private.h
  * 
  */
index 3231b07..6117c29 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * pooltypes.h
  * 
  */
index b818445..97fac9f 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2596a43..6f0af69 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #ifndef POOLVENDOR_H
 #define POOLVENDOR_H
 
index 8ab4db0..a585c1c 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * queue.c
  *
  */
index 9e9ee74..7066820 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * queue.h
  * 
  */
index 90d016a..e212dad 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo.c
  *
  * Manage metadata coming from one repository
index cf825b8..1fa4f7b 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo.h
  * 
  */
index b0555c4..3f75f50 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_solv.c
  * 
  * Read the binary dump of a Repo and create a Repo * from it
index 1c54716..da76a3b 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_solv.h
  * 
  */
index b9b15f7..f1e3c0a 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * solvable.h
  * 
  * A solvable represents an object with name-epoch:version-release.arch and dependencies
index cba80d5..9f38fd9 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * solver.c
  *
  * SAT based dependency solver
@@ -172,6 +179,33 @@ dep_possible(Solver *solv, Id dep, Map *m)
   return 0;
 }
 
+static inline int
+is_supplemented(Solver *solv, Solvable *s)
+{
+  Id sup, *supp;
+  if (!s->supplements && !s->freshens)
+    return 0;
+  if (s->supplements)
+    {
+      supp = s->repo->idarraydata + s->supplements;
+      while ((sup = *supp++) != 0)
+       if (dep_fulfilled(solv, sup))
+         break;
+      if (!sup)
+       return 0;
+    }
+  if (s->freshens)
+    {
+      supp = s->repo->idarraydata + s->freshens;
+      while ((sup = *supp++) != 0)
+       if (dep_fulfilled(solv, sup))
+         break;
+      if (!sup)
+       return 0;
+    }
+  return 1;
+}
+
 static void
 prune_to_highest_prio(Pool *pool, Queue *plist)
 {
@@ -207,7 +241,7 @@ prune_to_recommended(Solver *solv, Queue *plist)
   Pool *pool = solv->pool;
   int i, j;
   Solvable *s;
-  Id p, *pp, sup, *supp, rec, *recp, sug, *sugp, enh, *enhp;
+  Id p, *pp, rec, *recp, sug, *sugp, enh, *enhp;
 
   if (solv->recommends_index < 0)
     {
@@ -245,28 +279,8 @@ prune_to_recommended(Solver *solv, Queue *plist)
          plist->elements[j++] = p;
          continue;
        }
-      s = pool->solvables + p;
-      if (!s->supplements && !s->freshens)
-       continue;
-      if (s->supplements)
-       {
-         supp = s->repo->idarraydata + s->supplements;
-         while ((sup = *supp++) != 0)
-           if (dep_fulfilled(solv, sup))
-             break;
-         if (!sup)
-           continue;
-       }
-      if (s->freshens)
-       {
-         supp = s->repo->idarraydata + s->freshens;
-         while ((sup = *supp++) != 0)
-           if (dep_fulfilled(solv, sup))
-             break;
-         if (!sup)
-           continue;
-       }
-      plist->elements[j++] = s - pool->solvables;
+      if (is_supplemented(solv, pool->solvables + p))
+        plist->elements[j++] = p;
     }
   if (j)
     plist->count = j;
@@ -1766,7 +1780,7 @@ revert(Solver *solv, int level)
       solv->decisionq_why.count--;
       solv->propagate_index = solv->decisionq.count;
     }
-  while (solv->minimize.count && solv->minimize.elements[solv->minimize.count - 1] < -level)
+  while (solv->minimize.count && solv->minimize.elements[solv->minimize.count - 1] <= -level)
     {
       solv->minimize.count--;
       while (solv->minimize.count && solv->minimize.elements[solv->minimize.count - 1] >= 0)
@@ -1958,7 +1972,7 @@ run_solver(Solver *solv, int disablerules, int doweak)
   int systemlevel;
   int level, olevel;
   Rule *r;
-  int i, n;
+  int i, j, n;
   Solvable *s;
   Pool *pool = solv->pool;
   Id p, *dp;
@@ -2174,14 +2188,22 @@ run_solver(Solver *solv, int disablerules, int doweak)
            prune_to_recommended(solv, &dq);
          if (dq.count > 1)
            prune_best_version_arch(pool, &dq);
+         j = 0;
           if (dq.count > 1)
            {
-             int j;
-             for (j = 1; j < dq.count; j++)
-               queue_push(&solv->minimize, dq.elements[j]);
-             queue_push(&solv->minimize, -level);
+             /* choose the supplemented one */
+             for (j = 0; j < dq.count; j++)
+               if (is_supplemented(solv, pool->solvables + dq.elements[j]))
+                 break;
+             if (j == dq.count)
+               {
+                 for (j = 1; j < dq.count; j++)
+                   queue_push(&solv->minimize, dq.elements[j]);
+                 queue_push(&solv->minimize, -level);
+                 j = 0;
+               }
            }
-         p = dq.elements[0];
+         p = dq.elements[j];
          s = pool->solvables + p;
 #if 0
          printf("installing %s-%s.%s\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch));
@@ -2241,31 +2263,13 @@ run_solver(Solver *solv, int disablerules, int doweak)
                }
              else
                {
-                 Id *supp, sup;
                  s = pool->solvables + i;
                  if (!s->supplements && !s->freshens)
                    continue;
                  if (!pool_installable(pool, s))
                    continue;
-                 if (s->supplements)
-                   {
-                     supp = s->repo->idarraydata + s->supplements;
-                     while ((sup = *supp++) != 0)
-                       if (dep_fulfilled(solv, sup))
-                         break;
-                     if (!sup)
-                       continue;
-                   }
-                 if (s->freshens)
-                   {
-                     supp = s->repo->idarraydata + s->freshens;
-                     while ((sup = *supp++) != 0)
-                       if (dep_fulfilled(solv, sup))
-                         break;
-                     if (!sup)
-                       continue;
-                   }
-                 queue_pushunique(&dq, i);
+                 if (is_supplemented(solv, s))
+                   queue_pushunique(&dq, i);
                }
            }
          if (dq.count)
index bb6cbed..97e4fba 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * solver.h
  *
  */
index 4b95036..5d8f76c 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index 1b90cb3..6eb7809 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * util.h
  * 
  */
index 4178ae2..ad59982 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index 0a2ba1b..c5b634a 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #ifndef ATTR_STORE_H
 #define ATTR_STORE_H
 
index 5470657..bcad913 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #ifndef ATTR_STORE_P_H
 #define ATTR_STORE_P_H
 
index fa2e8ec..c2362e0 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index ef355f8..acc2c4c 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index cde1971..2ff4f96 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index 1139405..360e5c4 100644 (file)
@@ -1,3 +1,4 @@
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index f33ffcd..1d039e2 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * helix2solv.c
  * 
  * parse 'helix' type xml and write out .solv file
index 1127217..d51dafe 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * mergesolv
  * 
  */
index a4ab527..e4a4e06 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 2b1f71f..7ef0c27 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 2ccf200..0f1e48d 100644 (file)
@@ -1 +1,8 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 Repo * pool_addrepo_content(Pool *pool, FILE *fp);
index b8c58de..79f9e0e 100644 (file)
@@ -1,4 +1,10 @@
-/*  -*- mode: C; c-file-style: "gnu"; fill-column: 78 -*- */
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 /*
  * repo_helix.c
  * 
index b03a157..9260709 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_helix.h
  * 
  */
index d9c9820..a046f6e 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 8f9dff5..6946305 100644 (file)
@@ -1 +1,8 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 extern Repo *pool_addrepo_patchxml(Pool *pool, FILE *fp);
index b08cd2b..e56b3f8 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_rpmdb
  * 
  * convert rpm db to repo
index 027d610..e5b3b5c 100644 (file)
@@ -1 +1,8 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 extern Repo *pool_addrepo_rpmdb(Pool *pool, Repo *ref);
index 2aada6d..598d6bd 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 3e51fa3..93a6e9e 100644 (file)
@@ -1 +1,8 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 extern Repo *pool_addrepo_rpmmd(Pool *pool, FILE *fp);
index 14a23e2..05cb9ee 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 1731f65..ba7064f 100644 (file)
@@ -1 +1,8 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 extern Repo *pool_addrepo_susetags(Pool *pool, FILE *fp, Id vendor, int with_attr);
index 9104cc3..8171498 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_write.c
  * 
  * Write Repo data out to binary file
index 7e73e27..db36bde 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * repo_write.h
  *
  */
index 3dd7f92..bf77332 100644 (file)
@@ -1,4 +1,11 @@
 /*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
  * rpmdb2solv
  * 
  */
index 4a79752..becb3d2 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>
index 91f73a8..6982fce 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
 #include <sys/types.h>
 #include <limits.h>
 #include <fcntl.h>