Kaynağa Gözat

* dpkg-shlibdeps: fix ordering for shlibs.default

Ben Collins 27 yıl önce
ebeveyn
işleme
93bfad764e
3 değiştirilmiş dosya ile 14 ekleme ve 10 silme
  1. 4 0
      ChangeLog
  2. 1 1
      debian/changelog
  3. 9 9
      scripts/dpkg-shlibdeps.pl

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Thu Oct 28 10:10:23 EDT 1999 Ben Collins <bcollins.debian.org>
+
+  * dpkg-shlibdeps: fix ordering for shlibs.default
+
 Wed Oct 27 21:33:19 EDT 1999 Ben Collins <bcollins.debian.org>
 Wed Oct 27 21:33:19 EDT 1999 Ben Collins <bcollins.debian.org>
 
 
   * release.sh: remove attic/ and doc/obsolete/
   * release.sh: remove attic/ and doc/obsolete/

+ 1 - 1
debian/changelog

@@ -38,7 +38,7 @@ dpkg (1.4.1.19) unstable; urgency=low
     error reporting. Also corrected checks on shlibs.local, which wasn't
     error reporting. Also corrected checks on shlibs.local, which wasn't
     really being parsed, it now works as advertised.
     really being parsed, it now works as advertised.
   * dpkg-gencontrol: add "Source" to the fields placed in the control file
   * dpkg-gencontrol: add "Source" to the fields placed in the control file
-  * dpkg-parsechangelog: fixed loop for parsepath
+  * dpkg-parsechangelog: fixed loop for parsepath (#48526)
 
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 
 

+ 9 - 9
scripts/dpkg-shlibdeps.pl

@@ -129,6 +129,15 @@ if ($searchdir =~ m,/,) {
 
 
 if ($#curshlibs >= 0) {
 if ($#curshlibs >= 0) {
     PRELIB: for ($i=0;$i<=$#libname;$i++) {
     PRELIB: for ($i=0;$i<=$#libname;$i++) {
+	if(scanshlibsfile($shlibsdefault,$libname[$i],$libsoname[$i],$libf[$i])
+	    || scanshlibsfile($shlibsoverride,$libname[$i],$libsoname[$i],$libf[$i])) {
+	    splice(@libname, $i, 1);
+	    splice(@libsoname, $i, 1);
+	    splice(@libf, $i, 1);
+	    splice(@libfiles, $i, 1);
+	    $i--;
+	    next PRELIB;
+	}
 	for my $shlibsfile (@curshlibs) {
 	for my $shlibsfile (@curshlibs) {
 	    if(scanshlibsfile($shlibsfile, $libname[$i], $libsoname[$i], $libf[$i])) {
 	    if(scanshlibsfile($shlibsfile, $libname[$i], $libsoname[$i], $libf[$i])) {
 		splice(@libname, $i, 1);
 		splice(@libname, $i, 1);
@@ -139,15 +148,6 @@ if ($#curshlibs >= 0) {
 		next PRELIB;
 		next PRELIB;
 	    }
 	    }
 	}
 	}
-	if(scanshlibsfile($shlibsdefault,$libname[$i],$libsoname[$i],$libf[$i])
-	    || scanshlibsfile($shlibsoverride,$libname[$i],$libsoname[$i],$libf[$i])) {
-	    splice(@libname, $i, 1);
-	    splice(@libsoname, $i, 1);
-	    splice(@libf, $i, 1);
-	    splice(@libfiles, $i, 1);
-	    $i--;
-	    next PRELIB;
-	}
     }
     }
 }
 }