Subversion Repositories DevTools

Rev

Rev 1050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1050 Rev 6475
Line 60... Line 60...
60
chmod u+w "$newdir"
60
chmod u+w "$newdir"
61
 
61
 
62
#
62
#
63
#   De-tar the input stream into a working space
63
#   De-tar the input stream into a working space
64
tar -zx -C "$newdir"
64
tar -zx -C "$newdir"
-
 
65
if [ ! -f "$newdir/descpkg" ] ; then
-
 
66
    delete_dir "$newdir"
65
[ -f "$newdir/descpkg" ] || error Received package does not have descpkg file
67
    error Received package does not have descpkg file
-
 
68
fi
66
 
69
 
67
#
70
#
68
#   Swap in the new directory - minimize diruption
71
#   Swap in the new directory - minimize disruption
69
#   Then delete the old
72
#   Then delete the old
70
#
73
#
71
if [ -d "$realdir" ] ; then
74
if [ -d "$realdir" ] ; then
72
    mv "$realdir" "$olddir"
75
    mv "$realdir" "$olddir"
73
fi
76
fi