projects
/
p5sagit/Distar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1f136c7
)
don't modify MANIFEST.SKIP if tracked
Graham Knop [Tue, 23 Aug 2016 09:35:04 +0000 (
05:35
-0400)]
lib/Distar.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Distar.pm
b/lib/Distar.pm
index
c0950ca
..
0bc7d36
100644
(file)
--- a/
lib/Distar.pm
+++ b/
lib/Distar.pm
@@
-93,7
+93,11
@@
sub write_manifest_skip {
sub flush {
my $self = shift;
- Distar::write_manifest_skip($self);
+ `git ls-files --error-unmatch MANIFEST.SKIP 2>&1`;
+ my $maniskip_tracked = !$?;
+
+ Distar::write_manifest_skip($self)
+ unless $maniskip_tracked;
$self->SUPER::flush(@_);
}