AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

PM: Weaker dependencies than PKGRECOM #58

Open Artoria2e5 opened 9 years ago

Artoria2e5 commented 9 years ago

RPM has three levels of dependencies, Requires, Recommends and Suggests.

Recommends will let PM try to resolve its dependencies, while Suggests doesn't.

jiegec commented 9 years ago

Maybe suggests -> optional is better? Recommends is similar to suggests

MingcongBai commented 9 years ago

@jiegec This is a set Package Manager function, not anything we can change here.

Artoria2e5 commented 9 years ago

Wait, does dpkg has suggests?

I think this should be

# dpkg
[ "$PKGSUG" || "$PKGRECOM" ] && dpkgfield Recommends $PKGSUG $PKGRECOM
# rpm
$(rpmopttag Recommends $PKGRECOM)
# blah
Artoria2e5 commented 9 years ago

And @jiegec , It's still possible to call it a different name in autobuild. If it sounds better, we should use it.

MingcongBai commented 9 years ago

Wait, does dpkg has suggests?

Yes it does. Refer to the packaging policy.

MingcongBai commented 9 years ago

It's still possible to call it a different name in autobuild.

But should we?