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:
parent
7d2002f6f1
commit
e02a4c0688
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue