detect and report wrong placement of 'CONTENTSTYLE'
authorKlaus Kaempf <kkaempf@suse.de>
Mon, 27 Oct 2008 09:52:00 +0000 (09:52 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Mon, 27 Oct 2008 09:52:00 +0000 (09:52 +0000)
tools/repo_content.c

index 4d9bd2d..4f0bef5 100644 (file)
@@ -365,6 +365,9 @@ repo_add_content(Repo *repo, FILE *fp, int flags)
           *
           */
 
+         else if (code10 && istag ("CONTENTSTYLE"))
+           /* CONTENTSTYLE must be first line */
+           fprintf(stderr, "repo_content: 'CONTENTSTYLE' must be first line of 'content'\n");
          else if (code10 && istag ("DISTPRODUCT"))
            /* DISTPRODUCT is for registration and Yast, not for the solver. */
            repo_set_str(repo, s - pool->solvables, PRODUCT_DISTPRODUCT, value);