/[packages]/cauldron/perl-URPM/current/SOURCES/URPM-3.38.5-switch-from-forking-unpacker-to-using-librpm.diff
ViewVC logotype

Diff of /cauldron/perl-URPM/current/SOURCES/URPM-3.38.5-switch-from-forking-unpacker-to-using-librpm.diff

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 196494 by tv, Thu Jan 12 20:41:19 2012 UTC revision 196495 by tv, Sun Jan 15 16:17:16 2012 UTC
# Line 92  Line 92 
92   }   }
93    
94   static int   static int
95  @@ -3439,18 +3403,17 @@ Urpm_parse_hdlist__XS(urpm, filename, ..  @@ -3439,18 +3403,15 @@ Urpm_parse_hdlist__XS(urpm, filename, ..
96    
97       if (depslist != NULL) {       if (depslist != NULL) {
98         pid_t pid = 0;         pid_t pid = 0;
# Line 109  Line 109 
109            XPUSHs(sv_2mortal(newSViv(1 + av_len(depslist))));            XPUSHs(sv_2mortal(newSViv(1 + av_len(depslist))));
110            XPUSHs(sv_2mortal(newSViv(av_len(depslist))));            XPUSHs(sv_2mortal(newSViv(av_len(depslist))));
111  -      } else if (d >= 0 && fd) {  -      } else if (d >= 0 && fd) {
112  +      } else if (fd == NULL || Ferror(fd)) {  +      } else if (fd != NULL && !Ferror(fd)) {
 +           fprintf(stderr, "Failed to open hdlist: %s\n", Fstrerror(fd));  
 +      } else if (fd) {  
113          Header header;          Header header;
114          int start_id = 1 + av_len(depslist);          int start_id = 1 + av_len(depslist);
115          int packing = 0;          int packing = 0;

Legend:
Removed from v.196494  
changed lines
  Added in v.196495

  ViewVC Help
Powered by ViewVC 1.1.30