summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source/Package/V3/quilt.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-08-23 03:55:27 +0200
committerGuillem Jover <guillem@debian.org>2011-08-23 06:17:46 +0200
commitd97161c298625c8475b0b3d2d9e89e60ae56a5ff (patch)
tree1a177112a3fd137bbef2383260a7a86fb9c3b54f /scripts/Dpkg/Source/Package/V3/quilt.pm
parenta596ab8ef36ade2743dbd442d660b36146574624 (diff)
downloaddpkg-d97161c298625c8475b0b3d2d9e89e60ae56a5ff.tar.gz
Dpkg::Source::Package: Use “-z” instead of “not -s”
Diffstat (limited to 'scripts/Dpkg/Source/Package/V3/quilt.pm')
-rw-r--r--scripts/Dpkg/Source/Package/V3/quilt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Source/Package/V3/quilt.pm b/scripts/Dpkg/Source/Package/V3/quilt.pm
index 4db776bee..2fbcba274 100644
--- a/scripts/Dpkg/Source/Package/V3/quilt.pm
+++ b/scripts/Dpkg/Source/Package/V3/quilt.pm
@@ -389,7 +389,7 @@ sub register_patch {
erasedir(File::Spec->catdir($dir, ".pc", $patch_name));
}
# Clean up empty series
- unlink($series) if not -s $series;
+ unlink($series) if -z $series;
}
return $patch;
}