* src/echangelog/echangelog: Fix bug 284657, thanks to Andrew Gaffney <agaffney@gentoo.org>.
Cleanup VCS detection.
Cleanup.
+ Make --strict default, add --no-strict option.
2009-09-09: Christian Ruppert <idl0r@gentoo.org>
* src/imlate/imlate: Bump to 0.0.4.
# Global variables
my (@files, @ebuilds, @conflicts, @trivial, @unknown, @new_versions, %actions);
my ($input, $editor, $entry, $user, $date, $text, $vcs);
-my ($opt_help, $opt_strict, $opt_version);
+my ($opt_help, $opt_nostrict, $opt_version);
$opt_help = 0;
-$opt_strict = 0;
+$opt_nostrict = 0;
$opt_version = 0;
+# DEPRECATED
+my $opt_strict = 0;
my %vcs = (
bzr => {
Options:
--help err, this screen ...
- --strict abort on trivial/no changes
+ --no-strict do not abort on trivial/no changes
--version show version info
EOF
print $usage;
GetOptions(
'help' => \$opt_help,
- 'strict' => \$opt_strict,
+ 'no-strict' => \$opt_nostrict,
'version' => \$opt_version,
+ 'strict' => \$opt_strict,
);
usage() if $opt_help;
version() if $opt_version;
+if($opt_strict) {
+ print STDERR "Warning: The option '--strict' has been deprecated and will be removed soon!\n";
+ print STDERR "--strict behaviour is now default.\n";
+}
+
# Figure out what kind of repo we are in.
# Respect $PATH while looking for the VCS
if (getenv("PATH")) {
print STDERR "** modified. Did you forget to $vcs add?\n";
print STDERR "**\n";
- if ($opt_strict) {
+ if (!$opt_nostrict) {
print STDERR "** In strict mode, exiting\n";
- exit 1;
+ print STDERR "** If you know what you're doing there pass '--no-strict' to echangelog\n";
+ exit(1);
}
@files = sort sortfunc @trivial;