소스 검색

libdpkg: Do not lose reverse dependencies when parsing control data

Regression introduced in commit 58df02f9d39c1e7b1c7f49026a649f125b87140d.
Guillem Jover 15 년 전
부모
커밋
f3ac023572
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/dpkg/parse.c

+ 1 - 1
lib/dpkg/parse.c

@@ -267,7 +267,7 @@ pkg_parse_copy(struct parsedb_state *ps,
    * pifp was indeed also updated by copy_dependency_links,
    * but since the value was that from newpifp anyway there's
    * no need to copy it back. */
-  dst_pkgbin->depended = src_pkgbin->depended;
+  src_pkgbin->depended = dst_pkgbin->depended;
 
   /* Copy across data. */
   memcpy(dst_pkgbin, src_pkgbin, sizeof(struct pkgbin));