summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2006-01-25 08:48:41 +0000
committerSteve Arnold <nerdboy@gentoo.org>2006-01-25 08:48:41 +0000
commitdabf49727037731ea1364edd1b6e74893a46dceb (patch)
treea663a599b75753e003039876f68e8ec0e1d22b00 /sys-apps/adjtime
parent(#120259) Fix up modular X dep list. (diff)
downloadgentoo-2-dabf49727037731ea1364edd1b6e74893a46dceb.tar.gz
gentoo-2-dabf49727037731ea1364edd1b6e74893a46dceb.tar.bz2
gentoo-2-dabf49727037731ea1364edd1b6e74893a46dceb.zip
updated to original script with only path change
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'sys-apps/adjtime')
-rw-r--r--sys-apps/adjtime/ChangeLog6
-rw-r--r--sys-apps/adjtime/files/adjtime.pl4
2 files changed, 6 insertions, 4 deletions
diff --git a/sys-apps/adjtime/ChangeLog b/sys-apps/adjtime/ChangeLog
index 406eda111720..6858e1490afb 100644
--- a/sys-apps/adjtime/ChangeLog
+++ b/sys-apps/adjtime/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/adjtime
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/adjtime/ChangeLog,v 1.2 2006/01/22 22:36:50 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/adjtime/ChangeLog,v 1.3 2006/01/25 08:48:41 nerdboy Exp $
+
+ 25 Jan 2006; Steve Arnold <nerdboy@gentoo.org> files/adjtime.pl:
+ updated to original script with only path change; not sure why a "which"
+ check on the path would dork it up...
*adjtime-0.4-r1 (22 Jan 2006)
diff --git a/sys-apps/adjtime/files/adjtime.pl b/sys-apps/adjtime/files/adjtime.pl
index 2cf24dbc7198..efbf5799a091 100644
--- a/sys-apps/adjtime/files/adjtime.pl
+++ b/sys-apps/adjtime/files/adjtime.pl
@@ -219,12 +219,10 @@ sub get_offset { # ()
sub get_tickadj { # ($)
- my $TICKADJ = (`which tickadj`);
- printf STDERR "Using %s", $TICKADJ;
my ($tick) = @_;
$tick = '' unless defined($tick);
- foreach my $line (`$TICKADJ $tick`) {
+ foreach my $line (`/usr/bin/tickadj $tick`) {
printf STDERR "DEBUG: [%s]\n", $line if $DEBUG;
return $1 if $line =~ m/^tick\s+=\s+(\d+)\s*$/i;
}