aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-10-13 20:41:48 +0000
committerJason Woodward2003-10-13 20:41:48 +0000
commit2f3773ccfc9d2afbd6ec8b8153389d9b35aae781 (patch)
treed8685f8e6cad3c43f524b2292614fc0b7bf61fcc
parentb931716a2b2d316e93ec94112cd641279e124879 (diff)
downloadslapt-get-2f3773ccfc9d2afbd6ec8b8153389d9b35aae781.tar.gz
added fake pkg description to write pkg info func
-rw-r--r--src/package.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index ee1c2fd..5c627c2 100644
--- a/src/package.c
+++ b/src/package.c
@@ -885,7 +885,23 @@ void write_pkg_data(const char *source_url,FILE *d_file,struct pkg_list *pkgs){
fprintf(d_file,"PACKAGE SIZE (compressed): %d K\n",pkgs->pkgs[i]->size_c);
fprintf(d_file,"PACKAGE SIZE (uncompressed): %d K\n",pkgs->pkgs[i]->size_u);
fprintf(d_file,"PACKAGE DESCRIPTION:\n");
- fprintf(d_file,"%s\n",pkgs->pkgs[i]->description);
+ /* do we have to make up an empty description? */
+ if( strlen(pkgs->pkgs[i]->description) < strlen(pkgs->pkgs[i]->name) ){
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ fprintf(d_file,"%s: \n",pkgs->pkgs[i]->name);
+ }else{
+ fprintf(d_file,"%s\n",pkgs->pkgs[i]->description);
+ }
}
}