Kaydet (Commit) 6bc88d1f authored tarafından Your Name's avatar Your Name

fix debian target

üst e0106982
...@@ -12,7 +12,7 @@ write_kv_pair() { ...@@ -12,7 +12,7 @@ write_kv_pair() {
for val in "$@"; do for val in "$@"; do
if [[ $val = *$'\n'* ]]; then if [[ $val = *$'\n'* ]]; then
error "$(gettext "Invalid value for %s: %s")" "$key" "$val" error "Invalid value for $key $val"
exit $E_PKGBUILD_ERROR exit $E_PKGBUILD_ERROR
fi fi
printf "%s = %s\n" "$key" "$val" printf "%s = %s\n" "$key" "$val"
......
...@@ -9,12 +9,13 @@ notnull $priority && echo -e "Priority: $priority" ...@@ -9,12 +9,13 @@ notnull $priority && echo -e "Priority: $priority"
echo -e "Architecture: $arch" echo -e "Architecture: $arch"
echo -e "Maintainer: $maintainer <$email>" echo -e "Maintainer: $maintainer <$email>"
echo -e "Installed-Size: $(du -s $INSTALLDIR | cut -f 1)" echo -e "Installed-Size: $(du -s $INSTALLDIR | cut -f 1)"
notnull "$depends" && { echo -ne "Depends:" if [ "${#depends[@]}" -gt 0 ] ; then
for dep in ${depends[@]} echo -ne "Depends:"
do for dep in ${depends[@]}
echo -ne " $dep," do
done | sed "s/,$//g" ; echo echo -ne " $dep,"
} done | sed "s/,$//g" ; echo
fi
echo -e "Homepage: $homepage" echo -e "Homepage: $homepage"
echo -e "Date: $(date +'%d/%m/%Y-%H:%M:%S')" echo -e "Date: $(date +'%d/%m/%Y-%H:%M:%S')"
echo -e "Description: $description\n" echo -e "Description: $description\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment