First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 35527
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Michael Imhof <tantive@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Nils Ohlmeier <develop@ohlmeier.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 35527 depends on: Show dependency tree
Show dependency graph
Bug 35527 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-12-10 07:59 0000
The gentoo-rsync-portage.sh script from  gentoo-rsync-mirror-1.0-r2 fails if it
is called with complete path (as /opt/gentoo-rsync/gentoo-rsync-portage.sh)
because of the missing logfile
/var/log//opt/gentoo-rsync/gentoo-rsync-portage.sh.
(Initialy i called the script directly from the directory, thus it exists only
a log file /var/log/gentoo-rsync-portage.sh)

Reproducible: Always
Steps to Reproduce:
1. execute gentoo-rsync-portage.sh initaly directly from its directory
2. call the script with complete path (e.g. from cron)
3.

Actual Results:  
The sync fails, because of the non-existing log file.

Expected Results:  
It should sync :-)

I propose to replace the "$0" in the lines 11, 13 and 15 with "`basename $0`.

E.g.:
-echo "Started update at" `date` >> /var/log/$0.log 2>&1
+echo "Started update at" `date` >> /var/log/`basename $0`.log 2>&1

------- Comment #1 From Michael Imhof 2003-12-10 13:39:58 0000 -------
Doing the changes you suggested.
Seems like i overlooked that.

------- Comment #2 From Michael Imhof 2003-12-10 13:40:53 0000 -------
Changes completed and commited.
Thanks for your help!

First Last Prev Next    No search results available      Search page      Enter new bug