make-version.pl: If the VCS isn't git there is no commit_id.

Change-Id: Ideee81a0df72203805427447f50bcf4db14ca184
Reviewed-on: https://code.wireshark.org/review/28337
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
AndersBroman 2018-06-19 13:08:29 +02:00 committed by Anders Broman
parent 7d2002f6f1
commit e02a4c0688
1 changed files with 5 additions and 1 deletions

View File

@ -375,7 +375,11 @@ sub read_repo_info {
# generate our strings.
if ($version_pref{"pkg_enable"}) {
$version_format =~ s/%#/$num_commits/;
$package_format =~ s/%#/$num_commits-$commit_id/;
if($commit_id){
$package_format =~ s/%#/$num_commits-$commit_id/;
}else{
$package_format =~ s/%#/$num_commits/;
}
$package_string = strftime($package_format, gmtime($last_change));
}