[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Automatically creating .pc but not always?


when working with bzr-builddeb and '3.0 (quilt)' package format, I
noticed that in some cases it is possible that I run bzr builddeb -S
from my bzr branch, and then dpkg-source -b fails because there is no
.pc dir in the source tree. I'm not sure if this is a bzr-builddeb bug
or should dpkg-source create this directory automatically also in this
case? I recent commit d881cdca55e41e1b17d84b935c9a612e08f80f98 change
was made to create .pc directory automatically in some other case.

Following change does the trick for me.

diff --git a/scripts/Dpkg/Source/Package/V3/quilt.pm b/scripts/Dpkg/Source/Packa
index e1e23e2..93aff14 100644
--- a/scripts/Dpkg/Source/Package/V3/quilt.pm
+++ b/scripts/Dpkg/Source/Package/V3/quilt.pm
@@ -299,6 +299,7 @@ sub register_autopatch {
         # Add auto_patch to series file
         if (not $has_patch) {
             add_line($series, $auto_patch);
+            $self->create_quilt_db($dir);
             add_line($applied, $auto_patch);
         # Ensure quilt meta-data are created and in sync with some trickery:

Tommi Vainikainen

Reply to: