Index: /trunk/debbuild
===================================================================
--- /trunk/debbuild	(revision 123)
+++ /trunk/debbuild	(revision 124)
@@ -1039,5 +1039,5 @@
       }
 
-      my ($fpath,$fname) = ($pkgfile =~ m|(.+?/?)?([^/]+)$|);	# We don't need $fname now, but we might.
+      my ($fpath,$fname) = ($pkgfile =~ m|(.+?/?)?([^/]+/?)$|);	# We don't need $fname now, but we might.
       qx { mkdir -p $buildroot/$pkg$fpath }
 	if $fpath && $fpath ne '';
